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

java.lang.classfile.Attribute attributeName() method should return Utf8Entry

XMLWordPrintable

      ADDITIONAL SYSTEM INFORMATION :
      does not apply

      A DESCRIPTION OF THE PROBLEM :
      The attributName() method currently returns a String with the attribute name. I believe it should return the actual Utf8Entry in the class file. The stringValue() method would then return the attribute name. This is the way almost all the subinterfaces of Attribute work. Without the Utf8Entry information it is very difficult to write a class file dumper that shows the detailed contents of the class file as well as the symbolic information.


            asotona Adam Sotona
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: