Comment 1 for bug 2032865

Revision history for this message
Vladimir Petko (vpa1977) wrote :

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!
--------------