harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhouke...@apache.org
Subject svn commit: r799222 - /harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/javax/security/auth/kerberos/KeyImpl.java
Date Thu, 30 Jul 2009 10:04:32 GMT
Author: zhoukevin
Date: Thu Jul 30 10:04:31 2009
New Revision: 799222

URL: http://svn.apache.org/viewvc?rev=799222&view=rev
Log:
Fix failure of KerberosKeyTest.test_getEncoded for z/OS

Modified:
    harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/javax/security/auth/kerberos/KeyImpl.java

Modified: harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/javax/security/auth/kerberos/KeyImpl.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/javax/security/auth/kerberos/KeyImpl.java?rev=799222&r1=799221&r2=799222&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/javax/security/auth/kerberos/KeyImpl.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/javax/security/auth/kerberos/KeyImpl.java
Thu Jul 30 10:04:31 2009
@@ -134,7 +134,8 @@
         buf.append(realm);
         buf.append(pname.substring(0, pname.length() - realm.length() - 1));
 
-        byte[] tmp = buf.toString().getBytes();
+        byte[] tmp = org.apache.harmony.luni.util.Util.getUTF8Bytes(buf
+                .toString());
 
         // pad with 0x00 to 8 byte boundary
         byte[] raw = new byte[tmp.length



Mime
View raw message