RFR: 8344706: Compiler Implementation of Compact Source Files and Instance Main Methods [v2]
Naoto Sato
naoto at openjdk.org
Mon Apr 7 18:13:30 UTC 2025
On Mon, 7 Apr 2025 18:10:20 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:
>> This is a PR that implements JEP: Compact Source Files and Instance Main Methods. Changes include:
>> - `java.io.IO` moved to `java.lang.IO`, and no longer uses `System.console()` to implement the methods (thanks to @stuart-marks)
>> - `java. ... .IO` is no longer automatically imported in any compilation unit
>> - the feature is finalized (i.e. no longer requires `--enable-preview`)
>
> Jan Lahoda has updated the pull request incrementally with one additional commit since the last revision:
>
> Use local variable for System.out in print().
test/jdk/java/lang/IO/IO/IO.java line 1:
> 1: /*
Is there reason to create a test subdirectory `IO` under `java.lang.IO` package?
test/jdk/java/lang/IO/IO/IO.java line 53:
> 51: /*
> 52: * @test
> 53: * @bug 8305457 8342936 8351435
Issue id needs to be added (and other test files too)
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24438#discussion_r2031735643
PR Review Comment: https://git.openjdk.org/jdk/pull/24438#discussion_r2031750501
More information about the core-libs-dev
mailing list