RFR [9] 8143554: UnsupportedOperationException is not thrown for unsupported options

Svetlana Nikandrova svetlana.nikandrova at oracle.com
Thu Dec 3 13:06:25 UTC 2015


Hello,

please review a simple fix for:
https://bugs.openjdk.java.net/browse/JDK-8143554

See webrev here:
http://cr.openjdk.java.net/~kshefov/8143554/webrev.00/ 
<http://cr.openjdk.java.net/%7Ekshefov/8143554/webrev.00/>

Fix added explicit check for option support to getOption and setOption 
sockets' methods similar way as it was done prior jdk 9 in Sockets class.
Fix also exposed another problem with sockets' supported options: 
JDK-8143923 <https://bugs.openjdk.java.net/browse/JDK-8143923> that 
cause new test failure test/java/net/SocketOption/OptionsTest.java. I 
added test to the ProblemList.

Thank you,
Svetlana
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/net-dev/attachments/20151203/b07a4899/attachment.html>


More information about the net-dev mailing list