United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7053252 New regression test does not compile on windows-amd64
JDK-7053252 : New regression test does not compile on windows-amd64

Details
Type:
Bug
Submit Date:
2011-06-09
Status:
Closed
Updated Date:
2012-10-01
Project Name:
JDK
Resolved Date:
2012-09-06
Component:
security-libs
OS:
generic,windows
Sub-Component:
javax.crypto
CPU:
x86,generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
6u26-rev,7,8
Fixed Versions:

Related Reports
Backport:
Duplicate:
Duplicate:

Sub Tasks

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

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.
                                     
2011-06-09
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.
                                     
2011-06-09
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.
                                     
2011-06-09
EVALUATION

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



Hardware and Software, Engineered to Work Together