# HG changeset patch # User xuelei # Date 1462942940 0 # Node ID 7f404dcfb3dcbe75f44a51b76506e0f9e2fae864 # Parent e2acd0d8d71699ff0231d6c566c818f3ceb593cc 8156716: Incorrect condition in test SupportedDHKeys.java Reviewed-by: weijun diff -r e2acd0d8d716 -r 7f404dcfb3dc jdk/test/sun/security/pkcs11/KeyAgreement/SupportedDHKeys.java --- a/jdk/test/sun/security/pkcs11/KeyAgreement/SupportedDHKeys.java Wed May 11 12:32:00 2016 +0800 +++ b/jdk/test/sun/security/pkcs11/KeyAgreement/SupportedDHKeys.java Wed May 11 05:02:20 2016 +0000 @@ -108,8 +108,7 @@ BigInteger rightOpen = p.subtract(BigInteger.ONE); // ignore the private key range checking on Solaris at present - if (provider.getName().equals("SunPKCS11-Solaris") && - !System.getProperty("os.name").equals("SunOS")) { + if (!provider.getName().equals("SunPKCS11-Solaris")) { BigInteger x = privateKey.getX(); if ((x.compareTo(leftOpen) <= 0) || (x.compareTo(rightOpen) >= 0)) {