Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-13074

The attribute lookup is undefined for the annotation type Resource.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • None
    • maven
    • None

      The attribute "lookup" is not recognized by JBDS 5 for the annotation @Resource.
      To reproduce the issue,
      1) import cdi-injection quickstart into JBDS 5.0.1 as a maven project.
      2) run maven build "eclipse:eclipse" from JBDS.
      3) open EnglishTranslateService.java and add the annotation @Resource(lookup="")

      It will shows the message "the attribute lookup is undefined for the annotation type Resource".

      This issue is raised in the wiki [1] in the section "Correct build path precedence errors".

      It seems that it's related to the eclipse bug [2].

      The wiki provides a workaround which works fine. However, can we provide a complete and clean fix from JBDS side?

      [1] https://community.jboss.org/wiki/HackingAS7UsingEclipse

      [2] https://bugs.eclipse.org/bugs/show_bug.cgi?id=342128

            fbricon@redhat.com Fred Bricon
            rhn-support-ghu Gary Hu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: