RFR: 8297065: DerOutputStream operations should not throw IOExceptions

Weijun Wang weijun at openjdk.org
Wed Nov 23 12:44:37 UTC 2022


On Wed, 23 Nov 2022 04:19:42 GMT, Mark Powers <mpowers at openjdk.org> wrote:

>> src/java.base/share/classes/sun/security/x509/IssuingDistributionPointExtension.java line 121:
>> 
>>> 119:         boolean hasOnlyUserCerts, boolean hasOnlyCACerts,
>>> 120:         boolean hasOnlyAttributeCerts, boolean isIndirectCRL)
>>> 121:             throws IOException {
>> 
>> Don't you need `throws IllegalArgumentException`?
>
> Maybe not  - it's a runtime exception and those are special.

Yes, that's the reason. BTW, I did update the javadoc to list the new reason.

-------------

PR: https://git.openjdk.org/jdk/pull/11302


More information about the security-dev mailing list