8336756: Improve ClassFile Annotation writing

Reviewed-by: asotona
This commit is contained in:
Chen Liang 2024-08-20 19:02:38 +00:00
parent 0267284c52
commit 1ebf2cf639
3 changed files with 47 additions and 99 deletions

View file

@ -97,10 +97,7 @@ public sealed interface AnnotationValue {
* @since 22
*/
@PreviewFeature(feature = PreviewFeature.Feature.CLASSFILE_API)
sealed interface OfConstant
extends AnnotationValue
permits OfString, OfDouble, OfFloat, OfLong, OfInt, OfShort, OfChar, OfByte,
OfBoolean, AnnotationImpl.OfConstantImpl {
sealed interface OfConstant extends AnnotationValue {
/**
* {@return the constant pool entry backing this constant element}
*