提交 15104845 编写于 作者: W weijun

7076415: sun/security/krb5/runNameEquals.sh failed on sles 10

Reviewed-by: xuelei
上级 b9a7fb5a
...@@ -31,8 +31,8 @@ import org.ietf.jgss.*; ...@@ -31,8 +31,8 @@ import org.ietf.jgss.*;
public class Krb5NameEquals { public class Krb5NameEquals {
private static String NAME_STR1 = "service@host"; private static String NAME_STR1 = "service@localhost";
private static String NAME_STR2 = "service@host2"; private static String NAME_STR2 = "service2@localhost";
private static final Oid MECH; private static final Oid MECH;
static { static {
...@@ -57,7 +57,7 @@ public class Krb5NameEquals { ...@@ -57,7 +57,7 @@ public class Krb5NameEquals {
GSSName name3 = mgr.createName(NAME_STR1, GSSName name3 = mgr.createName(NAME_STR1,
GSSName.NT_HOSTBASED_SERVICE, MECH); GSSName.NT_HOSTBASED_SERVICE, MECH);
if (!name1.equals(name3) || !name1.equals(name3) || if (!name1.equals(name1) || !name1.equals(name3) ||
!name1.equals((Object) name1) || !name1.equals((Object) name1) ||
!name1.equals((Object) name3)) { !name1.equals((Object) name3)) {
System.out.println("Error: should be the same name"); System.out.println("Error: should be the same name");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册