The second test case in tools/launcher/ToolsOpts.java passes `-J-version` to a patched javac. This prints, among other things, the build id. If the build id happens to contain the substring "-J", e.g. when it contains "-JDK-" as a substring", the check to ensure that no "-J" arguments are passed to the launcher fails.
- links to
-
Review(master) openjdk/jdk/25230