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

Remove redundant methods from j.l.classfile.ClassReader API

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • None
    • core-libs
    • None

      j.l.classfile.ClassReader instance is exposed in the Class-File API through j.l.classfile.AttributeMapper::readAttribute method only.
      ClassReader only purpose is to serve as a tool for reading content of a custom attribute in a user-provided AttribtueMapper.
      It contains useful set of low-level class reading methods for user to implement a custom attribute content parser.

      However methods ClassReader::thisClassPos and ClassReader::skipAttributeHolder are not necessary for a custom attribute content parsing and so redundant in the API.
      Class-File API implementation internally use these methods, however they should not be exposed in the API.

            asotona Adam Sotona
            asotona Adam Sotona
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: