Request for reviews (XS): 7008165: Garbage in ClassFormatError message

Vladimir Kozlov vladimir.kozlov at oracle.com
Tue Dec 21 09:11:40 PST 2010


Good.

Vladimir

On 12/21/10 1:09 AM, Christian Thalinger wrote:
> 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