RFR: 8354724: BufferedReader readAllLines and readString methods [v12]
Brian Burkhalter
bpb at openjdk.org
Wed Apr 23 16:36:42 UTC 2025
On Wed, 23 Apr 2025 15:58:41 GMT, Johannes Döbler <duke at openjdk.org> wrote:
>>> The test will fail if the default Charset is not UTF-8
>>
>> When does that happen (cf. [JEP 400)](https://openjdk.org/jeps/400)?
>
> The default charset is not UTF-8 when you specify JVM param -Dfile.encoding, which of course is unlikely in the environment which executes the test. But imho being explicit about the charset does not hurt.
True, it would do more harm, but it would require `othervm`.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24728#discussion_r2056464162
More information about the core-libs-dev
mailing list