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
11 lines
468 B
Java
11 lines
468 B
Java
import module java.se;
|
|
import java.util.List; // java.se brings in java.desktop, whose java.awt.List clashes with java.util.List
|
|
|
|
public class JavaSe {
|
|
public static void main(String[] args) {
|
|
List<String> l = List.of("a"); // java.base
|
|
Logger lg = Logger.getLogger("x"); // java.logging
|
|
System.out.println(l + " " + lg.getName() + " " + Connection.TRANSACTION_NONE); // java.sql
|
|
}
|
|
}
|