RFR(S) 8042041: Fuzzy-ed RuntimeVisibleAnnotations causes assertion

George Triantafillou george.triantafillou at oracle.com
Wed Jun 17 13:13:22 UTC 2015


Hi Harold,

The fix and test both look good.

-George

On 6/17/2015 8:31 AM, harold seigel wrote:
> Hi,
>
> Please review this small change to fix bug JDK-8042041.  The bug 
> complains that the JVM asserts when parsing a class file containing a 
> bad element_tag in an element_value structure of a 
> RuntimeVisibleAnnotation attribute.
>
> The JVM should not assert when it finds something unexpected in a 
> class file.  Instead, it should handle it as defined by the JVM 
> Specification.  So, the fix removes the assertion and silently skips 
> over the malformed attribute.  The fix also removes the TRAPS argument 
> from method parse_annotations() because it does not throw any exceptions.
>
> Open webrev: http://javaweb.us.oracle.com/~hseigel/webrev/bug_8042041/
>
> JBS Bug: https://bugs.openjdk.java.net/browse/JDK-8042041
>
> Thanks, Harold



More information about the hotspot-runtime-dev mailing list