src/java.security.jgss/share/classes/sun/security/krb5/PrincipalName.java
changeset 52220 9c260a6b6471
parent 51979 3241975b1830
child 55258 d65d3c37232c
child 58678 9cf78a70fa4f
equal deleted inserted replaced
52219:151b990e3764 52220:9c260a6b6471
   177     }
   177     }
   178 
   178 
   179     public Object clone() {
   179     public Object clone() {
   180         try {
   180         try {
   181             PrincipalName pName = (PrincipalName) super.clone();
   181             PrincipalName pName = (PrincipalName) super.clone();
   182             UNSAFE.putObject(this, NAME_STRINGS_OFFSET, nameStrings.clone());
   182             UNSAFE.putReference(this, NAME_STRINGS_OFFSET, nameStrings.clone());
   183             return pName;
   183             return pName;
   184         } catch (CloneNotSupportedException ex) {
   184         } catch (CloneNotSupportedException ex) {
   185             throw new AssertionError("Should never happen");
   185             throw new AssertionError("Should never happen");
   186         }
   186         }
   187     }
   187     }