On Mon, 25 Apr 2022 18:48:31 GMT, Alan Bateman <al...@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

Reply via email to