RFR: 8372155: RealeaseInfoPlugin doesn't handle input file as UTF-8 properly [v2]

Severin Gehwolf sgehwolf at openjdk.org
Thu Nov 20 13:38:19 UTC 2025


On Thu, 20 Nov 2025 12:33:52 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Severin Gehwolf has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Specify that the input file shall be UTF-8
>
> src/jdk.jlink/share/classes/jdk/tools/jlink/internal/plugins/ReleaseInfoPlugin.java line 111:
> 
>> 109:                 // --release-info <file>
>> 110:                 Properties props = new Properties();
>> 111:                 try (InputStreamReader isr = new InputStreamReader(new FileInputStream(operation), "UTF-8")) {
> 
> `try (Reader reader = Files.newBufferedReader(Path.of(operation)))` for something shorter.

Fixed.

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/28399#discussion_r2546098359


More information about the core-libs-dev mailing list