W3cubDocs

/OpenJDK 21

Annotation Interface Experimental

@Inherited @Retention(RUNTIME) @Target({FIELD,TYPE}) public @interface Experimental
Annotation that specifies that an element is experimental and may change without notice.

Clients that visualize Flight Recorder events should not show the events or fields annotated with the Experimental annotation by default. This annotation allows event producers the freedom to try out new events without committing to them.

Clients may provide a check box (for example, in a preference page) where a user can opt-in to display experimental data. If the user decide to do so, the user interface should mark experimental events or fields so users can distinguish them from non-experimental events.

This annotation is inherited.

Since:
9

© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/jdk.jfr/jdk/jfr/Experimental.html