You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<divclass="type-signature"><spanclass="annotations"><ahref="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Documented.html" title="class or interface in java.lang.annotation" class="external-link">@Documented</a>
71
+
<ahref="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Retention.html" title="class or interface in java.lang.annotation" class="external-link">@Retention</a>(<ahref="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/RetentionPolicy.html#CLASS" title="class or interface in java.lang.annotation" class="external-link">CLASS</a>)
72
+
<ahref="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/Target.html" title="class or interface in java.lang.annotation" class="external-link">@Target</a>({<ahref="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/ElementType.html#TYPE" title="class or interface in java.lang.annotation" class="external-link">TYPE</a>,<ahref="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/ElementType.html#METHOD" title="class or interface in java.lang.annotation" class="external-link">METHOD</a>,<ahref="https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/lang/annotation/ElementType.html#CONSTRUCTOR" title="class or interface in java.lang.annotation" class="external-link">CONSTRUCTOR</a>})
<divclass="block">Opts a declaration into using <ahref="CopilotExperimental.html" title="annotation interface in com.github.copilot"><code>CopilotExperimental</code></a> APIs.
75
+
76
+
<p>
77
+
Apply this annotation to a type to allow declaration-level references to
78
+
experimental APIs anywhere within that type, or apply it to a method or
79
+
constructor to allow experimental API usage in that executable's signature.
80
+
This is a code-level alternative to the compiler option
81
+
<code>-Acopilot.experimental.allowed=true</code>.
82
+
83
+
<p>
84
+
This opt-in has the same declaration-level scope as the processor itself. It
85
+
does not affect expression-only usages inside method bodies that are not
86
+
visible to standard JSR 269 annotation processing.</div>
0 commit comments