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,12 @@
|
||||
$ javac broken/RecordThis.java
|
||||
exit 0
|
||||
|
||||
$ javac --enable-preview --release 28 broken/RecordThis.java
|
||||
broken/RecordThis.java:10: error: reference to this may only appear after an explicit constructor invocation
|
||||
nullCheck(label, this);
|
||||
^
|
||||
broken/RecordThis.java:11: error: reference to this may only appear after an explicit constructor invocation
|
||||
nullCheck(edges, this);
|
||||
^
|
||||
2 errors
|
||||
exit 1
|
||||
Reference in New Issue
Block a user