Primary user of the Java source launcher (according to JEP 330) is an early stage programmer learning Java.
Explicit requirement of --enable-preview, followed by --source XY options to enable preview features is an obstacle for a novice Java source launcher users.
It would make use of preview features more easy if --enable-preview option would automatically imply --source version option in the Java source launcher, similar as JShell does.
Explicit requirement of --enable-preview, followed by --source XY options to enable preview features is an obstacle for a novice Java source launcher users.
It would make use of preview features more easy if --enable-preview option would automatically imply --source version option in the Java source launcher, similar as JShell does.
- csr for
-
JDK-8325337 Java source launcher should not require `--source ...` to enable preview
-
- Closed
-