Java 27 and 26: runnable demos and captured output for every JEP, plus version lanes
Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B38FGKKam5SCGgwgduVAh3
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
$ javac --enable-preview --release 26 Pem26Style.java (JDK 26)
|
||||
exit=0
|
||||
|
||||
$ javac --enable-preview --release 27 Pem26Style.java (JDK 27)
|
||||
Pem26Style.java:1: error: cannot find symbol
|
||||
import java.security.DEREncodable;
|
||||
^
|
||||
symbol: class DEREncodable
|
||||
location: package java.security
|
||||
Pem26Style.java:20: error: cannot find symbol
|
||||
PEMDecoder viaProvider = PEMDecoder.of().withFactory(provider); // 2
|
||||
^
|
||||
symbol: method withFactory(Provider)
|
||||
location: class PEMDecoder
|
||||
Pem26Style.java:22: error: incompatible types: byte[] cannot be converted to String
|
||||
String base64Text = pem.content(); // 3
|
||||
^
|
||||
3 errors
|
||||
exit=1
|
||||
Reference in New Issue
Block a user