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.
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.