APIdia Launch Partner
Top Description Methods
jdk.internal.javac

public @Interface NoPreview

extends Annotation
Annotations
@Target:METHOD, CONSTRUCTOR, FIELD, PACKAGE, MODULE, TYPE
@Retention:CLASS
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target

The element annotated with this annotation should not be marked as a preview element. Note this internal annotation is handled specially by the javac compiler. To work properly with --release older-release, it requires special handling in make/langtools/src/classes/build/tools/symbolgenerator/CreateSymbols.java and src/jdk.compiler/share/classes/com/sun/tools/javac/jvm/ClassReader.java.

Method Summary

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString