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

XMLWordPrintable

    • Type: CSR
    • Resolution: Approved
    • Priority: P4
    • 23
    • Component/s: 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);
      

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

              Created:
              Updated:
              Resolved: