RFR: JDK-8285504 Minor cleanup could be done in javax.net

Mark Powers duke at openjdk.java.net
Mon Apr 25 19:20:27 UTC 2022


On Mon, 25 Apr 2022 18:48:31 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> https://bugs.openjdk.java.net/browse/JDK-8285504
>> 
>> JDK-8273046 is the umbrella bug for this bug. The changes were too large for a single code review, so it was decided to split into smaller chunks. This is one such chunk: 
>> 
>> open/src/java.base/share/classes/java/net
>
> src/java.base/share/classes/javax/net/ssl/SSLSessionContext.java line 110:
> 
>> 108:      */
>> 109:     void setSessionTimeout(int seconds)
>> 110:                  throws IllegalArgumentException;
> 
> IllegalArgumentException is a runtime exception, it's unusual to have "throws IllegalArgumentException". It would not impact compatibility to drop it. The important thing is that the javadoc has the `@throws` describing when it is thrown.

I'll drop it then. Thanks for noticing this.

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

PR: https://git.openjdk.java.net/jdk/pull/8384



More information about the security-dev mailing list