JDK-8272581 : sun/security/pkcs11/Provider/MultipleLogins.sh fails after JDK-8266182
  • Type: Bug
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 18
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2021-08-17
  • Updated: 2021-09-23
  • Resolved: 2021-08-17
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 17 JDK 18 JDK 8
11.0.14-oracleFixed 17.0.1Fixed 18 b11Fixed 8u321Fixed
Related Reports
Relates :  
Description
/opt/mach5/mesos/work_dir/jib-master/install/jdk-18+11-543/src.full/open/test/jdk/sun/security/pkcs11/Provider/../../../../../lib/jdk/test/lib/artifacts/OpensslArtifactFetcher.java:28: error: cannot find symbol
import jdk.test.lib.Platform;
                   ^
  symbol:   class Platform
  location: package jdk.test.lib
/opt/mach5/mesos/work_dir/jib-master/install/jdk-18+11-543/src.full/open/test/jdk/sun/security/pkcs11/Provider/../../../../../lib/jdk/test/lib/artifacts/OpensslArtifactFetcher.java:29: error: package jdk.test.lib.process does not exist
import jdk.test.lib.process.ProcessTools;
                           ^
/opt/mach5/mesos/work_dir/jib-master/install/jdk-18+11-543/src.full/open/test/jdk/sun/security/pkcs11/Provider/../../../../../lib/jdk/test/lib/artifacts/OpensslArtifactFetcher.java:59: error: cannot find symbol
            } else if (Platform.is64bit()) {
                       ^
  symbol:   variable Platform
  location: class OpensslArtifactFetcher
/opt/mach5/mesos/work_dir/jib-master/install/jdk-18+11-543/src.full/open/test/jdk/sun/security/pkcs11/Provider/../../../../../lib/jdk/test/lib/artifacts/OpensslArtifactFetcher.java:60: error: cannot find symbol
                if (Platform.isLinux()) {
                    ^
  symbol:   variable Platform
  location: class OpensslArtifactFetcher
/opt/mach5/mesos/work_dir/jib-master/install/jdk-18+11-543/src.full/open/test/jdk/sun/security/pkcs11/Provider/../../../../../lib/jdk/test/lib/artifacts/OpensslArtifactFetcher.java:62: error: cannot find symbol
                } else if (Platform.isOSX()) {
                           ^
  symbol:   variable Platform
  location: class OpensslArtifactFetcher
/opt/mach5/mesos/work_dir/jib-master/install/jdk-18+11-543/src.full/open/test/jdk/sun/security/pkcs11/Provider/../../../../../lib/jdk/test/lib/artifacts/OpensslArtifactFetcher.java:64: error: cannot find symbol
                } else if (Platform.isWindows()) {
                           ^
  symbol:   variable Platform
  location: class OpensslArtifactFetcher
/opt/mach5/mesos/work_dir/jib-master/install/jdk-18+11-543/src.full/open/test/jdk/sun/security/pkcs11/Provider/../../../../../lib/jdk/test/lib/artifacts/OpensslArtifactFetcher.java:96: error: cannot find symbol
                ProcessTools.executeCommand(path, "version")
                ^
  symbol:   variable ProcessTools
  location: class OpensslArtifactFetcher
Comments
JDK 17u fix request: Please approve this fix for 17u. The patch applies cleanly, test only fix and the test passes post applying the patch. This needs to backport along with JDK-8266182.
25-08-2021

Changeset: a199ebc0 Author: Abdul Kolarkunnu <akolarkunnu@openjdk.org> Date: 2021-08-17 16:54:32 +0000 URL: https://git.openjdk.java.net/jdk/commit/a199ebc0175f9882f051551cff9ce08016f204a4
17-08-2021

MultipleLogins.sh compiles all files under lib/jdk/test/lib/artifacts, Since JDK-8266182 added a new file OpensslArtifactFetcher.java in to same package and it has dependency with some other library files jdk.test.lib.process.ProcessTools & jdk.test.lib.Platform. These libraries are not there in MultipleLogins's class path and this test fails with compilation error. So as a fix moving OpensslArtifactFetcher.java to the package jdk.test.lib.security.
17-08-2021