RFR: JDK-8023278: Reflection API methods do not throw AnnotationFormatError in case of malformed Runtime[In]VisibleTypeAnnotations attribute

Joel Borggrén-Franck joel.franck at oracle.com
Thu Nov 21 19:50:24 UTC 2013


Hi

Please review this fix to the type annotation reflection parser. The wrong kind of exception was thrown in the case of malformed Runtime[In]VisibleTypeAnnotations .

Also the parser needed to be fixed for sign issues in a handful of places.

The test has tree broken classes encoded that tests a few of the error paths in the parser, I have also run the reproducer from JCK attached to the bug report and it passes.

bug: https://bugs.openjdk.java.net/browse/JDK-8023278
webrev: http://cr.openjdk.java.net/~jfranck/8023278/webrev.00/

cheers
/Joel




More information about the core-libs-dev mailing list