-
Bug
-
Resolution: Fixed
-
P4
-
None
-
b07
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8303592 | 11.0.19 | Kumar Srinivasan | P4 | Resolved | Fixed | b05 |
These scripts
test/jdk/java/lang/invoke/VarHandles/generate-vh-tests.sh
test/jdk/java/nio/Buffer/genBasic.sh
test/jdk/java/nio/Buffer/genCopyDirectMemory.sh
test/jdk/java/nio/Buffer/genOrder.sh
test/jdk/java/util/Formatter/genBasic.sh
use the stream preprocessor build.tools.spp.Spp to generate tests from templates. Spp requires that its input and output be specified as
java build.tools.spp.Spp -i$input -o$output
and not as
java build.tools.spp.Spp <$input >$output
which is to say *not* via stdin and stdout. Presumably Spp was changed without updating these scripts. The scripts now fail to generate the expected tests with a NullPointerException:
$ sh ./genBasic.sh
Exception in thread "main" java.lang.NullPointerException
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:147)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:110)
at build.tools.spp.Spp.main(Spp.java:98)
test/jdk/java/lang/invoke/VarHandles/generate-vh-tests.sh
test/jdk/java/nio/Buffer/genBasic.sh
test/jdk/java/nio/Buffer/genCopyDirectMemory.sh
test/jdk/java/nio/Buffer/genOrder.sh
test/jdk/java/util/Formatter/genBasic.sh
use the stream preprocessor build.tools.spp.Spp to generate tests from templates. Spp requires that its input and output be specified as
java build.tools.spp.Spp -i$input -o$output
and not as
java build.tools.spp.Spp <$input >$output
which is to say *not* via stdin and stdout. Presumably Spp was changed without updating these scripts. The scripts now fail to generate the expected tests with a NullPointerException:
$ sh ./genBasic.sh
Exception in thread "main" java.lang.NullPointerException
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:147)
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:110)
at build.tools.spp.Spp.main(Spp.java:98)
- backported by
-
JDK-8303592 Test generation scripts do not invoke stream preprocessor correctly
-
- Resolved
-
- blocks
-
JDK-8218461 test/jdk/java/lang/invoke/VarHandles should be generated rather than manually edited
-
- Resolved
-
- relates to
-
JDK-8302000 [11u] A subtle race condition during jdk11u build
-
- Resolved
-
-
JDK-8218471 generate-unsafe-access-tests.sh does not correctly invoke build.tools.spp.Spp
-
- Resolved
-
(2 links to)