[lworld] javap prints "value class" while class flags indicate ACC_IDENTITY

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • None
    • Affects Version/s: repo-valhalla
    • Component/s: tools

      After converting the enclosed jasm file to binaries, javap produces the following output:

      Classfile /Users/lkuskov/Downloads/ValueSubClass.class
        Last modified Jan 20, 2026; size 197 bytes
        SHA-256 checksum ce914ff85a7a8f5a2637520f421b91f2a16a5d2a8e2a8614275ff1389cd6dc1f
        Compiled from "xx.jasm"
      final value class ValueSubClass
        minor version: 65535
        major version: 70
        flags: (0x0030) ACC_FINAL, ACC_IDENTITY
        this_class: #4 // ValueSubClass
        super_class: #6 // java/lang/Object
        interfaces: 0, fields: 1, methods: 1, attributes: 1

      this output contains:

      final value class ValueSubClass

      while the class flags are reported as:

      flags: (0x0030) ACC_FINAL, ACC_IDENTITY

      The textual class declaration printed by javap should be consistent with the class access flags.

            Assignee:
            Chen Liang
            Reporter:
            Leonid Kuskov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: