RFR: 8296408: Make the PCSCException public accessible
Andrey Turbanov
aturbanov at openjdk.org
Wed Nov 16 22:37:54 UTC 2022
On Mon, 7 Nov 2022 05:55:18 GMT, Johannes Waigel <duke at openjdk.org> wrote:
> The `PCSCException` is thrown, but the error type is not visible due to the "private-packe" access rule.
> By changing the visibility it is possible to handle / access this exception type explicitly in the catch.
src/java.smartcardio/share/classes/sun/security/smartcardio/PCSCException.java line 38:
> 36: * @author Andreas Sterbenz
> 37: */
> 38: final public class PCSCException extends Exception {
Use blessed modifiers order
Suggestion:
public final class PCSCException extends Exception {
-------------
PR: https://git.openjdk.org/jdk/pull/11012
More information about the security-dev
mailing list