RFR(XS): 8166584: Remove obsolete utility function NET_ThrowSocketException in windows libnet
Langer, Christoph
christoph.langer at sap.com
Thu Sep 22 20:59:29 UTC 2016
Hi,
while looking at utility functions for creating exceptions in libjava/libnet I found a small spot that should be consolidated right away.
The function NET_ThrowSocketException does only exist in the windows native implementation and is only used in 3 places in SocketInputStream.c. I removed this in favor of directly calling JNU_ThrowByName as the Unix variant of that code already does.
In that function Java_java_net_SocketInputStream_socketRead0 I also replaced throwing a SocketException with throwing an NPE in the rare case that a the JNI input for the file descriptor is null. That's probably more natural and should virtually never occur anyways.
Bug: https://bugs.openjdk.java.net/browse/JDK-8166584
Webrev: http://cr.openjdk.java.net/~clanger/webrevs/8166584.0/
Thanks in advance for reviewing :)
Best regards
Christoph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/net-dev/attachments/20160922/f8d1536e/attachment-0001.html>
More information about the net-dev
mailing list