-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 24
-
Component/s: core-libs
-
None
`java.lang.classfile.TypeAnnotation` currently extends `Annotation`. This opens up opportunities for misuse, such as passing a `TypeAnnotation` into `AnnotationValue.OfAnnotation`, where the type information will be lost. And this modeling causes some difficulty in writing to bytes.
Therefore, I suggest remodeling `TypeAnnotation` to have an `Annotation annotation()` method to prevent such problems.
Therefore, I suggest remodeling `TypeAnnotation` to have an `Annotation annotation()` method to prevent such problems.
- blocks
-
JDK-8336756 Improve ClassFile Annotation writing
-
- Resolved
-
- csr for
-
JDK-8336794 Remodel TypeAnnotation to "have" instead of "be" an Annotation
-
- Closed
-
- relates to
-
JDK-8335939 Hide element writing across the ClassFile API
-
- Resolved
-
- links to
-
Commit(master)
openjdk/jdk/961e944f
-
Review(master)
openjdk/jdk/20247