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

Annotations lost from classfile

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 7
    • Fix Version/s: 7
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b112
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      We have encountered JCK failures lately, which were tracked down to losing some annotations in class files.

      Example:
        @interface Simple { }
        interface Test<@Simple T> { }

      Compile it with an older compiler, then use javap to see RuntimeInvisibleAnnotations
      Compile it with a recent compiler, then use javap, and see RuntimeInvisibleAnnotations not there.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jjg Jonathan Gibbons
              Reporter:
              jjg Jonathan Gibbons
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: