JDK-7053252 : New regression test does not compile on windows-amd64
  • Type: Bug
  • Component: security-libs
  • Sub-Component: javax.crypto
  • Affected Version: 6u26-rev,7,8
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,windows
  • CPU: generic,x86
  • Submitted: 2011-06-09
  • Updated: 2012-10-01
  • Resolved: 2012-09-06
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 7 JDK 8
7u4Fixed 8 b14Fixed
Related Reports
Duplicate :  
Duplicate :  
Description
This test will fail with the jdk_security3 target, or when run by itself.

TEST: sun/security/pkcs11/Provider/Absolute.java
JDK under test: (C:\temp\jprt\P2\T\222039~1.WET\TESTPR~1\WINDOW~1.2-P)
java version "1.7.0-internal"
Java(TM) SE Runtime Environment (build 1.7.0-internal-201106082220.wetmore.TestFailure-b00)
Java HotSpot(TM) 64-Bit Server VM (build 21.0-b15, mixed mode)


ACTION: build -- Failed. Compilation failed: exit code 1
REASON: Named class compiled on demand
TIME:   0.938 seconds
messages:
command: build Absolute
reason: Named class compiled on demand
elapsed time (seconds): 0.938

ACTION: compile -- Failed. Compilation failed: exit code 1
REASON: .class file out of date or does not exist
TIME:   0.938 seconds
messages:
command: compile C:\temp\jprt\P2\T\222039.wetmore\source\test\sun\security\pkcs11\Provider\Absolute.java
reason: .class file out of date or does not exist
elapsed time (seconds): 0.938
STDOUT:
STDERR:
C:\temp\jprt\P2\T\222039.wetmore\source\test\sun\security\pkcs11\Provider\Absolute.java:30: error: package sun.security.pkcs11 does not exist
import sun.security.pkcs11.*;
^
Note: C:\temp\jprt\P2\T\222039.wetmore\source\test\sun\security\pkcs11\Provider\Absolute.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
1 error

TEST RESULT: Failed. Compilation failed: exit code 1

Comments
EVALUATION Fix by removing the offending import statement.
01-07-2011

EVALUATION Simply removing the import statement fixes the problem. The test is using Class.forName with full pathnames. The import of pkcs11 is the only dependency on the PKCS11 library.
09-06-2011

EVALUATION Essentially due to the same cause as 7035115: sun/security/pkcs11/Provider/ConfigShortPath.java compilation failed Need to use reflection to load SunPKCS11 provider class and skip the testing when the class cannot be found. The fix is rather straight forward. Or, no fixes will be required after the windows 64 bit SunPKCS11 provider support is added.
09-06-2011

EVALUATION There is no pkcs11 lib in windows-64, remove the import statement and test passes. I personally do not consider this a showstopper. It only fails on windows-amd64, and works correctly on the others. But this should be fixed in 7u2.
09-06-2011