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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 24
    • 22, 23
    • 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

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

                Created:
                Updated:
                Resolved: