JDK 24 |
---|
24 b12Fixed |
Blocks :
|
|
CSR :
|
|
Relates :
|
`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.
|