Since Java 11, a PREVIEW-MODE on the Java Compiler and Runtime can be enabled. It allows to preview new features. (JEP 12)
java --enable-preview
How can I detect from within Java whether the JVM has been started with preview-mode enabled?
The intention is to describe the running container on an in-application status page/json - for devops overview.
So far I looked into system-properties and flags, neither contained a hint.