-
Enhancement
-
Resolution: Fixed
-
P3
-
24
-
None
One of the most glaring anomalies of the ClassFile API is the exposure of WritableAttribute without the reading counterparts. These writing hooks are almost never used by the clients, and their exposure imposes a massive maintenance burden and a blunt to understanding the best practices of the ClassFile API.
We must restrict the appearance of BufWriter to AttributeMapper only, just like its ClassReader counterpart; all other appearances and unrelated APIs will all be withdrawn to implementation.
Removals include:
- LocalVariable.writeTo
- LocalVariableType.writeTo
- WritableElement
- BufWriter.writeList/writeBytes/writeTo/copyTo
- ClassReader.compare
We must restrict the appearance of BufWriter to AttributeMapper only, just like its ClassReader counterpart; all other appearances and unrelated APIs will all be withdrawn to implementation.
Removals include:
- LocalVariable.writeTo
- LocalVariableType.writeTo
- WritableElement
- BufWriter.writeList/writeBytes/writeTo/copyTo
- ClassReader.compare
- blocks
-
JDK-8336756 Improve ClassFile Annotation writing
-
- Resolved
-
- csr for
-
JDK-8336586 Remove WritableElement and hide writing details of BufWriter
-
- Closed
-
- relates to
-
JDK-8336754 Remodel TypeAnnotation to "has" instead of "be" an Annotation
-
- Resolved
-
- links to
-
Commit(master) openjdk/jdk/a2a236f9
-
Review(master) openjdk/jdk/20205