# HG changeset patch # User xuelei # Date 1300377341 25200 # Node ID 088871daae86df5fc40379f674fd820d758e8ce7 # Parent e8507464a69dbe839994c8ad625f5e32cc3fac15 7028422: regression: SKID miss-matching Summary: Do not override the previous setting for initial selection. Reviewed-by: mullan diff -r e8507464a69d -r 088871daae86 jdk/src/share/classes/sun/security/provider/certpath/AdaptableX509CertSelector.java --- a/jdk/src/share/classes/sun/security/provider/certpath/AdaptableX509CertSelector.java Thu Mar 17 11:37:06 2011 -0400 +++ b/jdk/src/share/classes/sun/security/provider/certpath/AdaptableX509CertSelector.java Thu Mar 17 08:55:41 2011 -0700 @@ -103,8 +103,8 @@ if (akidext != null) { KeyIdentifier akid = (KeyIdentifier)akidext.get(akidext.KEY_ID); if (akid != null) { - // Do not override the previous setting - if (getSubjectKeyIdentifier() == null) { + // Do not override the previous setting for initial selection. + if (isSKIDSensitive || getSubjectKeyIdentifier() == null) { DerOutputStream derout = new DerOutputStream(); derout.putOctetString(akid.getIdentifier()); super.setSubjectKeyIdentifier(derout.toByteArray()); @@ -116,8 +116,8 @@ SerialNumber asn = (SerialNumber)akidext.get(akidext.SERIAL_NUMBER); if (asn != null) { - // Do not override the previous setting - if (getSerialNumber() == null) { + // Do not override the previous setting for initial selection. + if (isSNSensitive || getSerialNumber() == null) { super.setSerialNumber(asn.getNumber()); isSNSensitive = true; }