-
CSR
-
Resolution: Approved
-
P4
-
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);
- csr of
-
JDK-8332597 Remove redundant methods from j.l.classfile.ClassReader API
-
- Resolved
-
- relates to
-
JDK-8324965 JEP 466: Class-File API (Second Preview)
-
- Closed
-