Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01B38FGKKam5SCGgwgduVAh3
17 lines
616 B
Plaintext
17 lines
616 B
Plaintext
$ javac --enable-preview --release 26 Lazy26.java (JDK 26)
|
|
exit=0
|
|
|
|
$ javac --enable-preview --release 27 Lazy26.java (JDK 27)
|
|
Lazy26.java:12: error: cannot find symbol
|
|
if (!GREETING.isInitialized()) {
|
|
^
|
|
symbol: method isInitialized()
|
|
location: variable GREETING of type LazyConstant<String>
|
|
Lazy26.java:13: error: cannot find symbol
|
|
System.out.println("not yet: " + GREETING.orElse("<unset>"));
|
|
^
|
|
symbol: method orElse(String)
|
|
location: variable GREETING of type LazyConstant<String>
|
|
2 errors
|
|
exit=1
|