Reproducer for the issue.
----
$ ./validate-fix.sh
/tmp/tmp.VPUpz6BvYH ~/git/make-openjdk/extra-security-release
openjdk 17.0.8 2023-07-18
OpenJDK Runtime Environment (build 17.0.8+7-Ubuntu-123.04)
OpenJDK 64-Bit Server VM (build 17.0.8+7-Ubuntu-123.04, mixed mode, sharing)
Buildfile: /tmp/tmp.VPUpz6BvYH/build.xml
build:
[javac] /tmp/tmp.VPUpz6BvYH/build.xml:4: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 1 source file to /tmp/tmp.VPUpz6BvYH/classes
jar:
[jar] Building jar: /tmp/tmp.VPUpz6BvYH/test.jar
BUILD SUCCESSFUL
Total time: 0 seconds
1. Validation enabled and class not found due to the bug
Error: Could not find or load main class Test
Caused by: java.lang.ClassNotFoundException: Test
2. Validation disabled and class is found
Hello world!
--------------
Reproducer for the issue. openjdk/ extra-security- release 7-Ubuntu- 123.04) 7-Ubuntu- 123.04, mixed mode, sharing) VPUpz6BvYH/ build.xml
----
$ ./validate-fix.sh
/tmp/tmp.VPUpz6BvYH ~/git/make-
openjdk 17.0.8 2023-07-18
OpenJDK Runtime Environment (build 17.0.8+
OpenJDK 64-Bit Server VM (build 17.0.8+
Buildfile: /tmp/tmp.
build: VPUpz6BvYH/ build.xml: 4: warning: 'includeantruntime' was not set, defaulting to build.sysclassp ath=last; set to false for repeatable builds VPUpz6BvYH/ classes
[javac] /tmp/tmp.
[javac] Compiling 1 source file to /tmp/tmp.
jar: VPUpz6BvYH/ test.jar
[jar] Building jar: /tmp/tmp.
BUILD SUCCESSFUL ClassNotFoundEx ception: Test
Total time: 0 seconds
1. Validation enabled and class not found due to the bug
Error: Could not find or load main class Test
Caused by: java.lang.
2. Validation disabled and class is found
Hello world!
--------------