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

PreserveAllAnnotations option isn't tested

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 16
    • tools
    • None

      Existing -XX:+PreserveAllAnnotations option can be very useful for code that needs to access annotations with RetentionPolicy.CLASS without the need to parse the .class files manually.

      While the RuntimeInvisibleAnnotations are kept in the runtime, they are not visible via java.lang.reflect API.

      I guess it is an omission that would be easy to fix.

            Unassigned Unassigned
            jtulach Jaroslav Tulach (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: