JDK-8217017 : [TESTBUG] Tests fail to compile after JDK-8216265
  • Type: Bug
  • Component: hotspot
  • Sub-Component: test
  • Affected Version: 13
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2019-01-14
  • Updated: 2022-05-05
  • Resolved: 2019-01-15
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 11 JDK 13
11.0.16Fixed 13 b04Fixed
Related Reports
Relates :  
Description
We are seeing two test failures after this push:

Test: sun/security/krb5/auto/LoginProc.java

C:\\ade\\mesos\\work_dir\\jib-master\\install\\jdk13-jdk.134\\src.full\\open\\test\\jdk\\sun\\security\\krb5\\auto\\KDC.java:24: error: package jdk.test.lib does not exist
import jdk.test.lib.Platform;
                   ^
Test: java/nio/channels/spi/SelectorProvider/inheritedChannel/InheritedChannelTest.java

/scratch/opt/mach5/mesos/work_dir/jib-master/install/jdk13-jdk.134/src.full/open/test/jdk/java/nio/channels/spi/SelectorProvider/inheritedChannel/InheritedChannelTest.java:101: error: cannot find symbol
        String pathVar = Platform.sharedLibraryPathVariableName();
                         ^
  symbol:   variable Platform
  location: class InheritedChannelTest



Comments
A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk11u-dev/pull/1069 Date: 2022-05-04 08:07:43 +0000
04-05-2022

Fix request for jdk11u. I'd like to backport this patch to jdk11u to fix the build failure of test/jdk/java/nio/channels/spi/SelectorProvider/inheritedChannel/InheritedChannelTest.java. Patch can be applied cleanly and only test code is affected. Thanks.
04-05-2022

URL: http://hg.openjdk.java.net/jdk/jdk/rev/d633be26e59b User: dholmes Date: 2019-01-15 01:56:40 +0000
15-01-2019

sun/security/krb5/auto/LoginProc.java is a closed test - missing the @lib directive. InheritedChannelTest.java is missing an import statement for the Platform class.
15-01-2019

apparently, the tests miss '@library /test/lib' directive.
14-01-2019