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,19 @@
|
||||
$ java --add-modules jdk.incubator.vector src/VectorDemo.java
|
||||
WARNING: Using incubator modules: jdk.incubator.vector
|
||||
lanes per vector : 16
|
||||
sum 1..1003 : 503506
|
||||
|
||||
$ JDK 28: java --add-modules jdk.incubator.vector src/Float16Demo.java
|
||||
WARNING: Using incubator modules: jdk.incubator.vector
|
||||
Species[Float16, 8, S_128_BIT]
|
||||
|
||||
$ JDK 27: java --add-modules jdk.incubator.vector src/Float16Demo.java
|
||||
WARNING: Using incubator modules: jdk.incubator.vector
|
||||
src/Float16Demo.java:5: error: cannot find symbol
|
||||
var species = Float16Vector.SPECIES_128;
|
||||
^
|
||||
symbol: variable Float16Vector
|
||||
location: class Float16Demo
|
||||
1 error
|
||||
error: compilation failed
|
||||
exit 1
|
||||
Reference in New Issue
Block a user