RFR: 8357862: Java argument file is parsed unexpectedly with trailing comment
Christian Stein
cstein at openjdk.org
Mon Jun 2 15:43:50 UTC 2025
On Mon, 2 Jun 2025 15:35:34 GMT, Vicente Romero <vromero at openjdk.org> wrote:
> the fact that not including a space between the comment and the previous element created havoc seems to indicate that the scanner is pretty fragile and could break again in the future. We should probably file a follow up to make this code more reliable
Yes, seems reasonable. My initial solution was to try to make use of the shared [CommandLine](https://github.com/openjdk/jdk/blob/master/src/jdk.internal.opt/share/classes/jdk/internal/opt/CommandLine.java) class, but the parsing of the launcher is too early in the game.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25589#issuecomment-2931306833
More information about the core-libs-dev
mailing list