Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-236947

Signature attribute is stripped from java records

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.18 Pre-release 6
    • 21w37a, 21w38a, 21w39a
    • None
    • Plausible
    • (Unassigned)
    • Normal

    Description

      The Signature class attribute is removed from any generic record in Minecraft. This isn't a problem for normal players, but causes issues for modders, particularly when decompiling the game, as it creates invalid code. I've attached the javap output for one of the affected classes.
      The Record attribute is also erased, although this one may be intentional and doesn't cause any problem.

      Attachments

        Activity

          People

            boq [Mojang] Bartosz Bok
            ByMartrixX ByMartrixX
            Votes:
            11 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              CHK: