JDK-8164520 : java/lang/ProcessHandle/Basic.java is missing @library tag
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-08-20
  • Updated: 2020-09-01
  • Resolved: 2016-08-21
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 9
9 b135Fixed
Related Reports
Relates :  
Description
java/lang/ProcessHandle/Basic.java is missing the correct @library tag:

C:\\Users\\aurora\\CommonData\\j2se_jdk\\jdk\\test\\java\\lang\\ProcessHandle\\ProcessUtil.java:32: error: package jdk.test.lib does not exist
import jdk.test.lib.Platform;
                   ^
C:\\Users\\aurora\\CommonData\\j2se_jdk\\jdk\\test\\java\\lang\\ProcessHandle\\TreeTest.java:40: error: package jdk.test.lib does not exist
import jdk.test.lib.Utils;
                   ^
C:\\Users\\aurora\\CommonData\\j2se_jdk\\jdk\\test\\java\\lang\\ProcessHandle\\ProcessUtil.java:162: error: cannot find symbol
        return Platform.isWindows() && p.info().command().orElse("").endsWith("C:\\\\Windows\\\\System32\\\\conhost.exe");
               ^
  symbol:   variable Platform
  location: class ProcessUtil
C:\\Users\\aurora\\CommonData\\j2se_jdk\\jdk\\test\\java\\lang\\ProcessHandle\\ProcessUtil.java:224: error: cannot find symbol
        if (Platform.isWindows()) {
            ^
  symbol:   variable Platform
  location: class ProcessUtil
C:\\Users\\aurora\\CommonData\\j2se_jdk\\jdk\\test\\java\\lang\\ProcessHandle\\ProcessUtil.java:226: error: cannot find symbol
        } else if (Platform.isLinux() || Platform.isOSX()) {
                   ^
  symbol:   variable Platform
  location: class ProcessUtil
C:\\Users\\aurora\\CommonData\\j2se_jdk\\jdk\\test\\java\\lang\\ProcessHandle\\ProcessUtil.java:226: error: cannot find symbol
        } else if (Platform.isLinux() || Platform.isOSX()) {
                                         ^
  symbol:   variable Platform
  location: class ProcessUtil
C:\\Users\\aurora\\CommonData\\j2se_jdk\\jdk\\test\\java\\lang\\ProcessHandle\\TreeTest.java:192: error: cannot find symbol
            long timeout = Utils.adjustTimeout(60L);
                           ^
  symbol:   variable Utils
  location: class TreeTest
C:\\Users\\aurora\\CommonData\\j2se_jdk\\jdk\\test\\java\\lang\\ProcessHandle\\TreeTest.java:274: error: cannot find symbol
            Assert.assertTrue(spawnCount.await(Utils.adjustTimeout(30L), TimeUnit.SECONDS),
                                               ^
  symbol:   variable Utils
  location: class TreeTest
C:\\Users\\aurora\\CommonData\\j2se_jdk\\jdk\\test\\java\\lang\\ProcessHandle\\TreeTest.java:301: error: cannot find symbol
                for (long retries = Utils.adjustTimeout(100L); retries > 0 ; retries--) {
                                    ^
  symbol:   variable Utils
  location: class TreeTest
C:\\Users\\aurora\\CommonData\\j2se_jdk\\jdk\\test\\java\\lang\\ProcessHandle\\TreeTest.java:426: error: cannot find symbol
            Assert.assertTrue(spawnCount.await(Utils.adjustTimeout(30L), TimeUnit.SECONDS),
                                               ^
  symbol:   variable Utils
  location: class TreeTest
10 errors
result: Failed. Compilation failed: Compilation failed