Annotation Interface AllowCopilotExperimental
@Documented
@Retention(CLASS)
@Target({TYPE,METHOD,CONSTRUCTOR})
public @interface AllowCopilotExperimental
Opts a declaration into using
CopilotExperimental APIs.
Apply this annotation to a type to allow declaration-level references to
experimental APIs anywhere within that type, or apply it to a method or
constructor to allow experimental API usage in that executable's signature.
This is a code-level alternative to the compiler option
-Acopilot.experimental.allowed=true.
This opt-in has the same declaration-level scope as the processor itself. It does not affect expression-only usages inside method bodies that are not visible to standard JSR 269 annotation processing.
- Since:
- 1.0.0