Add java28-features module: the JDK 28 JEP list so far, one example per JEP on 28-ea+26, behaviour changes against JDK 27
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7N4ZDbUtA3ofqAqRV
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
c0062ea398
commit
d4b8552957
@@ -0,0 +1,16 @@
|
||||
$ JDK 27: java src/StructuredDemo.java (no flags)
|
||||
src/StructuredDemo.java:2: error: StructuredTaskScope is a preview API and is disabled by default.
|
||||
import java.util.concurrent.StructuredTaskScope.Joiner;
|
||||
^
|
||||
(use --enable-preview to enable preview APIs)
|
||||
src/StructuredDemo.java:2: error: Joiner is a preview API and is disabled by default.
|
||||
import java.util.concurrent.StructuredTaskScope.Joiner;
|
||||
|
||||
$ JDK 27: java src/PemDemo.java (no flags)
|
||||
src/PemDemo.java:4: error: PEMDecoder is a preview API and is disabled by default.
|
||||
import java.security.PEMDecoder;
|
||||
^
|
||||
(use --enable-preview to enable preview APIs)
|
||||
src/PemDemo.java:5: error: PEMEncoder is a preview API and is disabled by default.
|
||||
import java.security.PEMEncoder;
|
||||
|
||||
Reference in New Issue
Block a user