javap crash - Fatal error: Unmatched bit position 0x2 for location CLASS

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 24
    • Affects Version/s: 22, 23
    • Component/s: tools
    • b04

        javap reports a fatal error for several classes in java.lang.invoke.

        I expected javap to print classes from the JDK wtihout an error.

        I'm not entirely sure if this is a javap issue, or an issue with those classes. The error sounds like the modifiers for a class contains 0x0002, which would be ACC_PRIVATE on other declarations, but that modifier shouldn't be present on a class.

        $ javap -fullversion
        23-ea+22-1824

        $ javap 'java.lang.invoke.DelegatingMethodHandle.Holder' 'java.lang.invoke.DirectMethodHandle.Holder' 'java.lang.invoke.Invokers.Holder' 'java.lang.invoke.LambdaForm.Holder'
        Compiled from "DelegatingMethodHandle$Holder"
        Error: Fatal error: Unmatched bit position 0x2 for location CLASS
        Compiled from "DirectMethodHandle$Holder"
        Error: Fatal error: Unmatched bit position 0x2 for location CLASS
        Compiled from "Invokers$Holder"
        Error: Fatal error: Unmatched bit position 0x2 for location CLASS
        Compiled from "LambdaForm$Holder"
        Error: Fatal error: Unmatched bit position 0x2 for location CLASS

              Assignee:
              Chen Liang
              Reporter:
              Liam Miller-Cushon
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: