-
Bug
-
Resolution: Fixed
-
P4
-
openjdk8u252
-
b01
-
generic
-
generic
$ jtreg -va jdk/test/sun/tools/jconsole/WorkerDeadlockTest.java
STDOUT:
STDERR:
/home/hedongbo/myprojects/openJDK/bak/jdk8u-dev/jdk/test/sun/tools/jconsole/WorkerDeadlockTest.java:33: error: package sun.tools.jconsole does not exist
import sun.tools.jconsole.Worker;
^
/home/hedongbo/myprojects/openJDK/bak/jdk8u-dev/jdk/test/sun/tools/jconsole/WorkerDeadlockTest.java:42: error: cannot find symbol
Worker worker = new Worker("worker-" + i);
^
symbol: class Worker
location: class WorkerDeadlockTest
/home/hedongbo/myprojects/openJDK/bak/jdk8u-dev/jdk/test/sun/tools/jconsole/WorkerDeadlockTest.java:42: error: cannot find symbol
Worker worker = new Worker("worker-" + i);
^
symbol: class Worker
location: class WorkerDeadlockTest
3 errors
TEST RESULT: Failed. Compilation failed: Compilation failed
--------------------------------------------------
Test results: failed: 1
Report written to /home/hedongbo/myprojects/openJDK/bak/jdk8u-dev/JTreport/html/report.html
Results written to /home/hedongbo/myprojects/openJDK/bak/jdk8u-dev/JTwork
Error: Some tests failed or other problems occurred.
Proposed fix:
diff -r 9bdb41038765 test/sun/tools/jconsole/WorkerDeadlockTest.java
--- a/test/sun/tools/jconsole/WorkerDeadlockTest.java Sat Aug 29 13:55:48 2020 -0700
+++ b/test/sun/tools/jconsole/WorkerDeadlockTest.java Wed Oct 14 04:47:36 2020 +0800
@@ -26,7 +26,7 @@
* @bug 8236872
* @summary The test tries to catch a deadlock by creating a new worker,
* starting it, adding an empty job and immediately stopping it.
- * @modules jdk.jconsole/sun.tools.jconsole
+ * @library ${java.home}/lib/jconsole.jar
* @run main WorkerDeadlockTest
*/
STDOUT:
STDERR:
/home/hedongbo/myprojects/openJDK/bak/jdk8u-dev/jdk/test/sun/tools/jconsole/WorkerDeadlockTest.java:33: error: package sun.tools.jconsole does not exist
import sun.tools.jconsole.Worker;
^
/home/hedongbo/myprojects/openJDK/bak/jdk8u-dev/jdk/test/sun/tools/jconsole/WorkerDeadlockTest.java:42: error: cannot find symbol
Worker worker = new Worker("worker-" + i);
^
symbol: class Worker
location: class WorkerDeadlockTest
/home/hedongbo/myprojects/openJDK/bak/jdk8u-dev/jdk/test/sun/tools/jconsole/WorkerDeadlockTest.java:42: error: cannot find symbol
Worker worker = new Worker("worker-" + i);
^
symbol: class Worker
location: class WorkerDeadlockTest
3 errors
TEST RESULT: Failed. Compilation failed: Compilation failed
--------------------------------------------------
Test results: failed: 1
Report written to /home/hedongbo/myprojects/openJDK/bak/jdk8u-dev/JTreport/html/report.html
Results written to /home/hedongbo/myprojects/openJDK/bak/jdk8u-dev/JTwork
Error: Some tests failed or other problems occurred.
Proposed fix:
diff -r 9bdb41038765 test/sun/tools/jconsole/WorkerDeadlockTest.java
--- a/test/sun/tools/jconsole/WorkerDeadlockTest.java Sat Aug 29 13:55:48 2020 -0700
+++ b/test/sun/tools/jconsole/WorkerDeadlockTest.java Wed Oct 14 04:47:36 2020 +0800
@@ -26,7 +26,7 @@
* @bug 8236872
* @summary The test tries to catch a deadlock by creating a new worker,
* starting it, adding an empty job and immediately stopping it.
- * @modules jdk.jconsole/sun.tools.jconsole
+ * @library ${java.home}/lib/jconsole.jar
* @run main WorkerDeadlockTest
*/
- relates to
-
JDK-8236873 Worker has a deadlock bug
- Resolved