Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8254683

[TEST_BUG] jdk/test/sun/tools/jconsole/WorkerDeadlockTest.java fails

XMLWordPrintable

    • 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
        */

            dongbohe Dongbo He
            dongbohe Dongbo He
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: