Request for reviews (XS): 7008165: Garbage in ClassFormatError message
Christian Thalinger
christian.thalinger at oracle.com
Tue Dec 21 01:09:02 PST 2010
http://cr.openjdk.java.net/~twisti/7008165/webrev.01/
7008165: Garbage in ClassFormatError message
Summary: When bootstrap_method_ref in BootstrapMethods attribute points to a wrong CP entry (non-MethodHandle), JVM throws ClassFormatError with a message, where method index and class file name is garbage.
Reviewed-by:
When bootstrap_method_ref in BootstrapMethods attribute points to a
wrong CP entry (non-MethodHandle), JVM throws ClassFormatError with a
message, where method index and class file name is garbage:
Exception in thread "main" java.lang.ClassFormatError: bootstrap_method_index 141157536 has bad constant type in class file
Two check_property calls without specifying the index were added with
7001379. The fix is to add the index as argument to check_property.
Tested with provided testcase.
More information about the hotspot-dev
mailing list