RFR: 8344706: Compiler Implementation of Compact Source Files and Instance Main Methods
Alan Bateman
alanb at openjdk.org
Mon Apr 7 09:14:52 UTC 2025
On Fri, 4 Apr 2025 07:20:23 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`)
src/java.base/share/classes/java/lang/IO.java line 45:
> 43: * UTF-8 is used instead. These internal objects are created upon the first call to
> 44: * either of the {@code readln} methods and are stored for subsequent reuse by these
> 45: * methods.
@stuart-marks Can we rephrase this paragraph so that it doesn't use phrase "internal objects"?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24438#discussion_r2030812095
More information about the compiler-dev
mailing list