United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 7008165 Garbage in ClassFormatError message
7008165 : Garbage in ClassFormatError message

Details
Type:
Bug
Submit Date:
2010-12-21
Status:
Closed
Updated Date:
2012-02-01
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
hotspot
OS:
generic
Sub-Component:
compiler
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
hs20
Fixed Versions:
hs20

Related Reports
Backport:
Backport:
Relates:

Sub Tasks

Description
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 ??

It seems like the corresponding sprintf() does not receive method index and class file name.

This bug was introduced by CR 7001379.

                                    

Comments
EVALUATION

Two check_property calls without specifying the index were added with 7001379.
                                     
2010-12-21
SUGGESTED FIX

Simply add the index as argument to check_property.
                                     
2010-12-21
EVALUATION

http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/ef3c5db0b3ae
                                     
2010-12-21



Hardware and Software, Engineered to Work Together