Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6930507

Symbols for anonymous and local classes made too late for use by java tree API

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 7
    • 7
    • tools
    • b112
    • generic
    • generic
    • Verified

      The JSR 269 API model all sorts of classes, including local and anonymous ones. While those sorts of classes aren't directly retreibable via the standard JSR 269 API, they should be available from the javac-specific tree API. However, when a program to javac trees of local and anonymous classes is run (see tests for bug 6449781), a null is returned.

      A null is returned when running an annotation processor to find this information because annotation processing generally takes place at the enter/memberEnter stage and symbols for local and anonymous classes are only created during Attr.

            jjg Jonathan Gibbons
            darcy Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: