JDK-8153317 : Two jimage tests have been failing since JDK-8152641 was fixed
Type:Bug
Component:tools
Affected Version:9
Priority:P2
Status:Closed
Resolution:Fixed
Submitted:2016-04-01
Updated:2017-07-19
Resolved:2016-04-01
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
The following tests started to fail after JDK-8152641 was fixed
tools/jimage/JImageTest.java
tools/jimage/JImageToolTest.java
Comments
Test seem a bit odd, but checking that we're not adding the same generated class twice makes them happy:
http://mail.openjdk.java.net/pipermail/core-libs-dev/2016-April/039885.html
01-04-2016
These failures seem to be caused by JDK-8152641.
Claes R,
Could you please take a look at them?
01-04-2016
tools/jimage/JImageToolTest.java tests failed with the following output
Stacktrace
Execution failed: `main' threw exception: java.lang.RuntimeException: JImageToolTest FAILED
Standard Output
Command line: [/scratch/jenkins/workspace/9-dev-tier2-linux-x64/build/jdk/bin/java -ms8m jdk.tools.jimage.Main extract --dir /scratch/jenkins/workspace/9-dev-tier2-linux-x64/JTwork/jdk_test/scratch/6/./extract /scratch/jenkins/workspace/9-dev-tier2-linux-x64/build/jdk/lib/modules ]
Command line: [/scratch/jenkins/workspace/9-dev-tier2-linux-x64/build/jdk/bin/java -ms8m jdk.tools.jimage.Main recreate --dir /scratch/jenkins/workspace/9-dev-tier2-linux-x64/JTwork/jdk_test/scratch/6/./extract /scratch/jenkins/workspace/9-dev-tier2-linux-x64/JTwork/jdk_test/scratch/6/./recreate ]
Standard Error
java.lang.RuntimeException: JImageToolTest FAILED
at JImageToolTest.jimage(JImageToolTest.java:53)
at JImageToolTest.main(JImageToolTest.java:69)
at sun.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:531)
at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:226)
at java.lang.Thread.run(java.base@9-ea/Thread.java:804)
JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test
01-04-2016
tools/jimage/JImageTest.java test failed with the following output
Stacktrace
Execution failed: `main' threw exception: java.lang.AssertionError: Unexpected failure: 4
Standard Output
[0.031s][info][gc] Using G1
[1.029s][info][gc] GC(0) Pause Young (G1 Evacuation Pause) 52M->10M(1024M) (1.016s, 1.029s) 13.374ms
[3.447s][info][gc] GC(1) Pause Young (G1 Evacuation Pause) 58M->28M(1024M) (3.389s, 3.447s) 58.235ms
[3.549s][info][gc] GC(2) Pause Young (G1 Evacuation Pause) 73M->43M(1024M) (3.540s, 3.549s) 9.686ms
[3.702s][info][gc] GC(3) Pause Young (G1 Evacuation Pause) 97M->60M(1024M) (3.685s, 3.702s) 17.056ms
[4.091s][info][gc] GC(4) Pause Young (G1 Evacuation Pause) 127M->77M(1024M) (4.073s, 4.091s) 17.746ms
[4.321s][info][gc] GC(5) Pause Young (G1 Evacuation Pause) 162M->94M(1024M) (4.294s, 4.321s) 27.188ms
[6.029s][info][gc] GC(6) Pause Young (G1 Evacuation Pause) 201M->100M(1024M) (6.005s, 6.029s) 23.825ms
Standard Error
javac options: -modulepath /scratch/jenkins/workspace/9-dev-tier2-linux-x64/build/jdk/jmods:/scratch/jenkins/workspace/9-dev-tier2-linux-x64/JTwork/jdk_test/scratch/0/jmods:/scratch/jenkins/workspace/9-dev-tier2-linux-x64/JTwork/jdk_test/scratch/0/jars:/scratch/jenkins/workspace/9-dev-tier2-linux-x64/JTwork/jdk_test/scratch/0/explodedmods/classes -g /scratch/jenkins/workspace/9-dev-tier2-linux-x64/JTwork/jdk_test/scratch/0/jmods/src/mod1/mod1/Main.java /scratch/jenkins/workspace/9-dev-tier2-linux-x64/JTwork/jdk_test/scratch/0/jmods/src/mod1/module-info.java
jmod options: create --main-class mod1.Main --class-path /scratch/jenkins/workspace/9-dev-tier2-linux-x64/JTwork/jdk_test/scratch/0/jmods/classes/mod1 --modulepath /scratch/jenkins/workspace/9-dev-tier2-linux-x64/build/jdk/jmods:/scratch/jenkins/workspace/9-dev-tier2-linux-x64/JTwork/jdk_test/scratch/0/jmods:/scratch/jenkins/workspace/9-dev-tier2-linux-x64/JTwork/jdk_test/scratch/0/jars /scratch/jenkins/workspace/9-dev-tier2-linux-x64/JTwork/jdk_test/scratch/0/jmods/mod1.jmod
jlink options: --output /scratch/jenkins/workspace/9-dev-tier2-linux-x64/JTwork/jdk_test/scratch/0/images/mod1.image --addmods mod1 --limitmods mod1 --modulepath /scratch/jenkins/workspace/9-dev-tier2-linux-x64/build/jdk/jmods:/scratch/jenkins/workspace/9-dev-tier2-linux-x64/JTwork/jdk_test/scratch/0/jmods:/scratch/jenkins/workspace/9-dev-tier2-linux-x64/JTwork/jdk_test/scratch/0/jars:/scratch/jenkins/workspace/9-dev-tier2-linux-x64/JTwork/jdk_test/scratch/0/explodedmods/classes
jimage options: extract --dir /scratch/jenkins/workspace/9-dev-tier2-linux-x64/JTwork/jdk_test/scratch/0/extracted/modules.extracted /scratch/jenkins/workspace/9-dev-tier2-linux-x64/JTwork/jdk_test/scratch/0/images/mod1.image/lib/modules
jimage options: recreate --dir /scratch/jenkins/workspace/9-dev-tier2-linux-x64/JTwork/jdk_test/scratch/0/extracted/modules.extracted /scratch/jenkins/workspace/9-dev-tier2-linux-x64/JTwork/jdk_test/scratch/0/recreated/modules.extracted.jimage
jdk.tools.jlink.plugin.PluginException: jdk.tools.jlink.plugin.PluginException: Resource /java.base/java/lang/invoke/BoundMethodHandle$Species_L3.class already present
at jdk.tools.jlink.internal.plugins.GenerateJLIClassesPlugin.generateConcreteClass(jdk.jlink@9-ea/GenerateJLIClassesPlugin.java:182)
at jdk.tools.jlink.internal.plugins.GenerateJLIClassesPlugin.lambda$visit$2(jdk.jlink@9-ea/GenerateJLIClassesPlugin.java:159)
at java.util.ArrayList.forEach(java.base@9-ea/ArrayList.java:1352)
at jdk.tools.jlink.internal.plugins.GenerateJLIClassesPlugin.visit(jdk.jlink@9-ea/GenerateJLIClassesPlugin.java:159)
at jdk.tools.jlink.internal.ImagePluginStack.visitResources(jdk.jlink@9-ea/ImagePluginStack.java:279)
at jdk.tools.jlink.internal.ImageFileCreator.generateJImage(jdk.jlink@9-ea/ImageFileCreator.java:186)
at jdk.tools.jlink.internal.ImageFileCreator.recreateJimage(jdk.jlink@9-ea/ImageFileCreator.java:152)
at jdk.tools.jimage.ExtractedImage.recreateJImage(jdk.jlink@9-ea/ExtractedImage.java:72)
at jdk.tools.jimage.JImageTask.recreate(jdk.jlink@9-ea/JImageTask.java:207)
at jdk.tools.jimage.JImageTask.run(jdk.jlink@9-ea/JImageTask.java:378)
at jdk.tools.jimage.JImageTask.run(jdk.jlink@9-ea/JImageTask.java:173)
at jdk.tools.jimage.Main.run(jdk.jlink@9-ea/Main.java:48)
at tests.JImageGenerator$JImageTask.cmd(JImageGenerator.java:549)
at tests.JImageGenerator$JImageTask.recreate(JImageGenerator.java:558)
at JImageTest.main(JImageTest.java:117)
at sun.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43)