--- old/src/java.base/share/classes/sun/security/provider/DSA.java 2018-05-11 15:04:25.271995800 -0700 +++ new/src/java.base/share/classes/sun/security/provider/DSA.java 2018-05-11 15:04:24.620624700 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 1996, 2017, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1996, 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 @@ -33,6 +33,7 @@ import java.security.*; import java.security.SecureRandom; import java.security.interfaces.*; +import java.security.spec.*; import sun.security.util.Debug; import sun.security.util.DerValue; @@ -370,11 +371,24 @@ throw new InvalidParameterException("No parameter accepted"); } + @Override + protected void engineSetParameter(AlgorithmParameterSpec params) + throws InvalidAlgorithmParameterException { + if (params != null) { + throw new InvalidAlgorithmParameterException("No parameter accepted"); + } + } + @Deprecated protected Object engineGetParameter(String key) { return null; } + @Override + protected AlgorithmParameters engineGetParameters() { + return null; + } + private BigInteger generateR(BigInteger p, BigInteger q, BigInteger g, BigInteger k) {