JDK-8235625 : [TESTBUG] tools/jpackage/share/JavaOptionsEqualsTest.java fails with debug VMs
  • Type: Bug
  • Component: tools
  • Sub-Component: jpackage
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-12-10
  • Updated: 2019-12-19
  • Resolved: 2019-12-12
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.

To download the current JDK release, click here.
JDK 14 JDK 15
14 b27Fixed 15Fixed
Related Reports
Relates :  
Description
* Reproduce
```
Ben="tools/jpackage/share/JavaOptionsEqualsTest.java"
make test TEST="${Ben}" CONF=fastdebug
```

* Symptom
```
JavaTest Message: Test threw exception: java.lang.AssertionError: Unexpected number of lines: 12 - output: WARNING: Unknown module: other.mod.bar specified to --add-exports
WARNING: Unknown module: me.mymodule.foo specified to --add-exports
0 output/test/bin/test
1 -Djava.library.path=/home/fool/workspace/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_tools_jpackage_share_JavaOptionsEqualsTest_java/scratch/0/output/test/lib/app:/home/fool/workspace/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_tools_jpackage_share_JavaOptionsEqualsTest_java/scratch/0/output/test/bin
2 -Djava.launcher.path=/home/fool/workspace/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_tools_jpackage_share_JavaOptionsEqualsTest_java/scratch/0/output/test/bin
3 --add-exports=java.base/sun.util=me.mymodule.foo,ALL-UNNAMED
4 --add-exports=java.base/sun.security.util=other.mod.bar,ALL-UNNAMED
5 -classpath
6 /home/fool/workspace/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_tools_jpackage_share_JavaOptionsEqualsTest_java/scratch/0/output/test/lib/app/hello.jar
7 Hello
hello: Environment supports a display
jpackage test application
args.length: 0
hello: Output file: [appOutput.txt]

...

TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: Unexpected number of lines: 12 - output: WARNING: Unknown module: other.mod.bar specified to --add-exports WARNING: Unknown module: me.mymodule.foo specified to --add-exports 0 output/test/bin/test 1 -Djava.library.path=/home/fool/workspace/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_tools_jpackage_share_JavaOptionsEqualsTest_java/scratch/0/output/test/lib/app:/home/fool/workspace/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_tools_jpackage_share_JavaOptionsEqualsTest_java/scratch/0/output/test/bin 2 -Djava.launcher.path=/home/fool/workspace/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_tools_jpackage_share_JavaOptionsEqualsTest_java/scratch/0/output/test/bin 3 --add-exports=java.base/sun.util=me.mymodule.foo,ALL-UNNAMED 4 --add-exports=java.base/sun.security.util=other.mod.bar,ALL-UNNAMED 5 -classpath 6 /home/fool/workspace/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_tools_jpackage_share_JavaOptionsEqualsTest_java/scratch/0/output/test/lib/app/hello.jar 7 Hello hello: Environment supports a display jpackage test application args.length: 0 hello: Output file: [appOutput.txt]
--------------------------------------------------
Test results: failed: 1

...
```
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/00d14aec6256 User: jiefu Date: 2019-12-12 01:35:00 +0000
12-12-2019

RFR: https://mail.openjdk.java.net/pipermail/core-libs-dev/2019-December/063953.html
10-12-2019