Runnable sources, deliberate compile failures, three small modules and nine captured transcripts for import module (JEP 511). Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TF9JWFvJSNm6HVzswzZU5a
7 lines
227 B
Java
7 lines
227 B
Java
import module java.sql;
|
|
|
|
void main() {
|
|
var l = List.of("java.base came implicitly"); // no import module java.base written
|
|
IO.println(l + " " + Connection.TRANSACTION_NONE); // java.sql from the explicit import
|
|
}
|