JDK-7185965 : Build error in javadoc make stage for bundles not containing crypto package
  • Type: Bug
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 7u6
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_10
  • CPU: sparc
  • Submitted: 2012-07-23
  • Updated: 2013-09-12
  • Resolved: 2012-09-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 7 JDK 8
7u40 b08Fixed 8Fixed
Description
JLE tried to build jdk7u6ea(b18) in solaris10.
The following error message shows up and build process fails.

MESSAGE:
......
/export/home/tbaba/java/jdk6u26/bin/java -XX:-PrintVMOptions -XX:+UnlockDiagnosticVMOptions -XX:-LogVMOutput -client -Xmx1024m -Xms512m -XX:PermSize=32m -XX:MaxPermSize=160m "-Xbootclasspath/p:/export/home/tbaba/jdk/jdk7u6ea/build/solaris-sparcv9/langtools/dist/bootstrap/lib/javadoc.jar:/export/home/tbaba/jdk/jdk7u6ea/build/solaris-sparcv9/langtools/dist/bootstrap/lib/javac.jar:/export/home/tbaba/jdk/jdk7u6ea/build/solaris-sparcv9/langtools/dist/bootstrap/lib/doclets.jar" -jar /export/home/tbaba/jdk/jdk7u6ea/build/solaris-sparcv9/langtools/dist/bootstrap/lib/javadoc.jar -bootclasspath /export/home/tbaba/jdk/jdk7u6ea/build/solaris-sparcv9/classes  -d /export/home/tbaba/jdk/jdk7u6ea/build/solaris-sparcv9/docs/jdk/api/jpda/jdi \
	  @/export/home/tbaba/jdk/jdk7u6ea/build/solaris-sparcv9/tmp/docs/doctmp/jdi.options @/export/home/tbaba/jdk/jdk7u6ea/build/solaris-sparcv9/tmp/docs/doctmp/jdi.packages
../../src/share/classes/javax/security/auth/kerberos/KerberosKey.java:29: error: package javax.crypto does not exist
import javax.crypto.SecretKey;
                   ^
../../src/share/classes/javax/security/auth/kerberos/KerberosKey.java:60: error: cannot find symbol
public class KerberosKey implements SecretKey, Destroyable {
                                    ^
  symbol: class SecretKey
../../src/share/classes/javax/security/auth/kerberos/KeyImpl.java:30: error: package javax.crypto does not exist
import javax.crypto.SecretKey;
                   ^
../../src/share/classes/javax/security/auth/kerberos/KeyImpl.java:51: error: cannot find symbol
class KeyImpl implements SecretKey, Destroyable, Serializable {
                         ^
  symbol: class SecretKey
../../src/share/classes/java/security/Signature.java:39: error: package javax.crypto does not exist
import javax.crypto.Cipher;
                   ^
../../src/share/classes/java/security/Signature.java:40: error: package javax.crypto does not exist
import javax.crypto.CipherSpi;
                   ^
../../src/share/classes/java/security/Signature.java:41: error: package javax.crypto does not exist
import javax.crypto.IllegalBlockSizeException;
                   ^
../../src/share/classes/java/security/Signature.java:42: error: package javax.crypto does not exist
import javax.crypto.BadPaddingException;
                   ^
../../src/share/classes/java/security/Signature.java:43: error: package javax.crypto does not exist
import javax.crypto.NoSuchPaddingException;
                   ^
../../src/share/classes/java/security/Signature.java:1208: error: cannot find symbol
        private final Cipher cipher;
                      ^
  symbol:   class Cipher
  location: class CipherAdapter
../../src/share/classes/java/security/Signature.java:1212: error: cannot find symbol
        CipherAdapter(Cipher cipher) {
                      ^
  symbol:   class Cipher
  location: class CipherAdapter
../../src/share/classes/java/security/KeyRep.java:34: error: package javax.crypto does not exist
import javax.crypto.SecretKeyFactory;
                   ^
../../src/share/classes/java/security/KeyRep.java:35: error: package javax.crypto.spec does not exist
import javax.crypto.spec.SecretKeySpec;
                        ^
../../src/share/classes/java/security/KeyStore.java:33: error: package javax.crypto does not exist
import javax.crypto.SecretKey;
                   ^
../../src/share/classes/java/security/KeyStoreSpi.java:35: error: package javax.crypto does not exist
import javax.crypto.SecretKey;
                   ^
../../src/share/classes/java/security/KeyStore.java:488: error: cannot find symbol
        private final SecretKey sKey;
                      ^
  symbol:   class SecretKey
  location: class SecretKeyEntry
../../src/share/classes/java/security/KeyStore.java:499: error: cannot find symbol
        public SecretKeyEntry(SecretKey secretKey) {
                              ^
  symbol:   class SecretKey
  location: class SecretKeyEntry
../../src/share/classes/java/security/KeyStore.java:511: error: cannot find symbol
        public SecretKey getSecretKey() {
               ^
  symbol:   class SecretKey
  location: class SecretKeyEntry
7 errors
11 warnings
make[3]: *** [/export/home/tbaba/jdk/jdk7u6ea/build/solaris-sparcv9/docs/jdk/api/jpda/jdi/index.html] Error 1
make[3]: Leaving directory `/export/home/tbaba/jdk/jdk7u6ea/jdk/make/docs'
make[2]: *** [docs] Error 1
make[2]: Leaving directory `/export/home/tbaba/jdk/jdk7u6ea/jdk/make'
make[1]: *** [jdk-build] Error 2
make[1]: Leaving directory `/export/home/tbaba/jdk/jdk7u6ea'
make: *** [build_product_image] Error 2

Comments
EVALUATION Should bootstrap a jce.jar file to javadoc make process when necessary.
08-08-2012