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

javap generates confusing output for enum constructor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 8
    • 8
    • tools
    • None

      javap uses the Signature attribute to print the "Java" version of the signature, which is generally better than the descriptor, since it adds generic info, but it might omit parameters not written by the user -- in the case of enum constructors, this includes the name and index values to be passed to the Enum constructor.

      In general, in verbose mode, it would probably be good for javap to always prominently display the descriptor for a method.

            Unassigned Unassigned
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: