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

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

    XMLWordPrintable

Details

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

    Description

      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);

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: