--- old/src/java.base/share/classes/com/sun/crypto/provider/PBEKeyFactory.java 2019-01-21 18:48:00.573313006 +0100 +++ new/src/java.base/share/classes/com/sun/crypto/provider/PBEKeyFactory.java 2019-01-21 18:48:00.369313543 +0100 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -216,7 +216,7 @@ if (!(keySpec instanceof PBEKeySpec)) { throw new InvalidKeySpecException("Invalid key spec"); } - return new PBEKey((PBEKeySpec)keySpec, type); + return new PBEKey((PBEKeySpec)keySpec, type, true); } /**