TwoStarImports.java, the java.base export count in output/04, the extra LocalDate line in src/imports.jsh and regenerated transcripts. Additive commit. Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01TF9JWFvJSNm6HVzswzZU5a
66 lines
2.7 KiB
Plaintext
66 lines
2.7 KiB
Plaintext
$ javac broken/AmbiguousDate.java (25.0.4.1+1-LTS)
|
|
broken/AmbiguousDate.java:6: error: reference to Date is ambiguous
|
|
Date d = new Date(0L);
|
|
^
|
|
both class java.sql.Date in java.sql and class java.util.Date in java.util match
|
|
broken/AmbiguousDate.java:6: error: reference to Date is ambiguous
|
|
Date d = new Date(0L);
|
|
^
|
|
both class java.sql.Date in java.sql and class java.util.Date in java.util match
|
|
2 errors
|
|
|
|
$ javac broken/AmbiguousDate.java (27+35)
|
|
broken/AmbiguousDate.java:6: error: reference to Date is ambiguous
|
|
Date d = new Date(0L);
|
|
^
|
|
both class java.sql.Date in java.sql and class java.util.Date in java.util match
|
|
broken/AmbiguousDate.java:6: error: reference to Date is ambiguous
|
|
Date d = new Date(0L);
|
|
^
|
|
both class java.sql.Date in java.sql and class java.util.Date in java.util match
|
|
2 errors
|
|
|
|
$ javac broken/AmbiguousList.java (25.0.4.1+1-LTS)
|
|
broken/AmbiguousList.java:6: error: reference to List is ambiguous
|
|
List<String> names = new ArrayList<>();
|
|
^
|
|
both class java.awt.List in java.awt and interface java.util.List in java.util match
|
|
1 error
|
|
|
|
$ javac broken/AmbiguousList.java (27+35)
|
|
broken/AmbiguousList.java:6: error: reference to List is ambiguous
|
|
List<String> names = new ArrayList<>();
|
|
^
|
|
both class java.awt.List in java.awt and interface java.util.List in java.util match
|
|
1 error
|
|
|
|
$ javac broken/TwoStarImports.java (25.0.4.1+1-LTS)
|
|
broken/TwoStarImports.java:6: error: reference to Date is ambiguous
|
|
Date d = new Date(0L); // the same clash, with the old on-demand imports
|
|
^
|
|
both class java.sql.Date in java.sql and class java.util.Date in java.util match
|
|
broken/TwoStarImports.java:6: error: reference to Date is ambiguous
|
|
Date d = new Date(0L); // the same clash, with the old on-demand imports
|
|
^
|
|
both class java.sql.Date in java.sql and class java.util.Date in java.util match
|
|
2 errors
|
|
|
|
$ javac broken/TwoStarImports.java (27+35)
|
|
broken/TwoStarImports.java:6: error: reference to Date is ambiguous
|
|
Date d = new Date(0L); // the same clash, with the old on-demand imports
|
|
^
|
|
both class java.sql.Date in java.sql and class java.util.Date in java.util match
|
|
broken/TwoStarImports.java:6: error: reference to Date is ambiguous
|
|
Date d = new Date(0L); // the same clash, with the old on-demand imports
|
|
^
|
|
both class java.sql.Date in java.sql and class java.util.Date in java.util match
|
|
2 errors
|
|
|
|
$ javac src/FixedDate.java && java FixedDate (25.0.4.1+1-LTS)
|
|
java.util.Date
|
|
java.sql.Date
|
|
|
|
$ javac src/FixedDate.java && java FixedDate (27+35)
|
|
java.util.Date
|
|
java.sql.Date
|