Skip to main content

Old j2se/make/tools/crypto/ in jdk7 b12

No replies
Joined: 2006-05-21


with jdk7 b12, I run into the following error:

gnumake[3]: Entering directory `/usr/sap/BUILD/d034648/p4/bas2/j2se/17_adapted/j2se/make/sun/security/jgss'
# Java sources to be compiled: (listed in file /priv/tmp/dol_b12/tmp/sun/
# Running javac:
/priv/d034648/jdk1.6.0//bin/javac -J-XX:ThreadStackSize=768 -J-client -J-Xmx512m -J-Xms256m -classpath /priv/tmp/dol_b12/classes -bootclasspath /priv/tmp/dol_b12/lib/jce.jar -sourcepath /priv/tmp/dol_b12/gensrc:../../../../src/solaris/classes:../../../../src/share/classes:../../../../src/closed/solaris/classes:../../../../src/closed/share/classes -d /priv/tmp/dol_b12/classes -encoding ascii -g -source 1.5 -target 5 @/priv/tmp/dol_b12/tmp/sun/
../../../../src/share/classes/sun/security/jgss/krb5/ cannot find symbol
symbol : constructor KrbApReq(byte[],[],
location: class
apReq = new KrbApReq(apReqBytes, keys, addr);
1 error
gnumake[3]: *** [.compile.classlist] Error 1
gnumake[3]: Leaving directory `/usr/sap/BUILD/d034648/p4/bas2/j2se/17_adapted/j2se/make/sun/security/jgss'
gnumake[2]: *** [build] Error 1
gnumake[2]: Leaving directory `/usr/sap/BUILD/d034648/p4/bas2/j2se/17_adapted/j2se/make/sun/security'
gnumake[1]: *** [build] Error 1
gnumake[1]: Leaving directory `/usr/sap/BUILD/d034648/p4/bas2/j2se/17_adapted/j2se/make/sun'
gnumake: *** [sun] Error 2
gnumake: Leaving directory `/usr/sap/BUILD/d034648/p4/bas2/j2se/17_adapted/control/sap'

In jdk7 b12, the file has been changed that it uses a different constructor for KrbApReq

p4 diff //bas2/j2se/17/j2se/src/share/classes/sun/security/jgss/krb5/

@@ -94,7 +95,12 @@
byte[] apReqBytes =
//debug("=====ApReqBytes: [" + getHexBytes(apReqBytes) + "]\n");
- apReq = new KrbApReq(apReqBytes, keys);
+ InetAddress addr = null;
+ if (context.getChannelBinding() != null) {
+ addr = context.getChannelBinding().getInitiatorAddress();
+ }
+ apReq = new KrbApReq(apReqBytes, keys, addr);
//debug("\nReceived AP-REQ and authenticated it.\n");

EncryptionKey sessionKey

The class is part of j2se/make/tools/crypto/
The version of shipped with jdk7 b12 does not contain a with the required constructor.

d034648@ls3246:/tmp/sec-zip> /priv/d034648/jdk1.6.0/bin/javap
Compiled from ""
public class extends java.lang.Object{
public, boolean, boolean, boolean, throws,,,;
public[],[]) throws,;,,,,,,,,, throws,,,;
void decode() throws,;
void decode( throws,;
public getCreds(); getCtime();
int cusec(); getAPOptions() throws,;
public boolean getMutualAuthRequired() throws,;
boolean useSessionKey() throws,;
public getSubKey();
public java.lang.Integer getSeqNumber();
public getChecksum();
public byte[] getMessage();
public getClient();
static {};