RFR: 8371470: Java Launcher does not fail when running compact java-file with private no-arg constructor [v2]
Christian Stein
cstein at openjdk.org
Fri Nov 14 07:37:18 UTC 2025
On Fri, 14 Nov 2025 06:56:41 GMT, Ana Maria Mihalceanu <duke at openjdk.org> wrote:
>> Christian Stein has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Remove unused method
>
> src/jdk.compiler/share/classes/com/sun/tools/javac/resources/launcher.properties line 125:
>
>> 123: # 0: string
>> 124: launcher.err.cant.find.constructor=\
>> 125: can''t find no argument constructor in class: {0}
>
> This is a nitpick, but I noticed the double `'` in the message above.
>
> Suggestion:
>
> can't find no argument constructor in class: {0}
That is the correct syntax, required by `MessageFormat`: [MessageFormat#quoting-rules-in-patterns-heading](https://docs.oracle.com/en/java/javase/25/docs/api/java.base/java/text/MessageFormat.html#quoting-rules-in-patterns-heading)
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28291#discussion_r2526165995
More information about the compiler-dev
mailing list