Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7008165

Garbage in ClassFormatError message

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • hs20
    • hs20
    • hotspot
    • b04
    • b06
    • generic
    • generic
    • Verified

        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.

              twisti Christian Thalinger (Inactive)
              kshiroko Kirill Shirokov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: