Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8027181 Type Annotations Cleanup
  3. JDK-8027258

Permit a single source annotation to generate multiple bytecode annotations

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b19
    • Verification:
      Not verified

      Description

      The current implementation does not easily support the case where a single source annotation should give rise to multiple bytecode annotations. In the following code:

      interface Thing {}
      public class Test {
          public Thing meth() { return new @X Thing() {}; }
      }

      There should be a bytecode annotation for the superclass of Thing$1 (the anonymous class), the new, and the constructor invocation.

        Attachments

          Activity

            People

            Assignee:
            emc Eric Mccorkle
            Reporter:
            emc Eric Mccorkle
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: