Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-5982

Groovy parser cannot handle annotations from source

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • None
    • None
    • groovy - Editor
    • None

    Description

      Symbols resolved for annotations are inspected using ClassNode.getTypeClass() called on the annotation's type. This attempts to load annotation class into JVM

      If the referenced annotation is in the same project, the classes may not be generated yet an the j.l.Class cannot be loaded. The compilation immediately terminates with an internal error, bypassing rest of attributing work.

      References to library annotations are OK - they are loaded from .class files (althoug loading into JVM should be avoided)

       

      Note: this is a Groovy bug, not NetBeans. Must be fixed in Groovy, or we need to patch Groovy for our purposes.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sdedic Svatopluk Dedic
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: