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

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

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 23
    • core-libs
    • None
    • source, binary
    • minimal
    • Java API
    • SE

      Summary

      Remove methods thisClassPos and skipAttributeHolder from java.lang.classfile.ClassReader.

      Problem

      java.lang.classfile.ClassReader only purpose is to serve as a tool for reading content of a custom attribute in a user-provided AttributeMapper. It contains useful set of low-level class reading methods for user to implement a custom attribute content parser. However methods thisClassPos and skipAttributeHolder are not necessary for a custom attribute content parsing and so redundant in the API.

      Solution

      Remove methods thisClassPos and skipAttributeHolder from java.lang.classfile.ClassReader.

      Specification

      src/java.base/share/classes/java/lang/classfile/ClassReader.java: 
      - int thisClassPos();
      - int skipAttributeHolder(int offset);

            asotona Adam Sotona
            asotona Adam Sotona
            Jan Lahoda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: