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

Garbage in ClassFormatError message

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: hs20
    • Fix Version/s: hs20
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Introduced In Build:
      b04
    • Introduced In Version:
    • Resolved In Build:
      b06
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Backports

        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.

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: