--- a/test/jdk/com/sun/crypto/provider/Cipher/PBE/PKCS12Cipher.java Thu Aug 23 10:52:27 2018 +0200
+++ b/test/jdk/com/sun/crypto/provider/Cipher/PBE/PKCS12Cipher.java Thu Aug 23 11:37:14 2018 +0100
@@ -106,7 +106,7 @@
this.salt = salt;
this.iCount = iCount;
}
- public char[] getPassword() { return passwd; }
+ public char[] getPassword() { return passwd.clone(); }
public byte[] getSalt() { return salt; }
public int getIterationCount() { return iCount; }
public String getAlgorithm() { return "PBE"; }