On 12/01/2013 23:20, Sand Stone wrote:
Hi, JDK devs.
Is there a reason the impl not there below?
This is a bug, fixed in jdk8, 7107020:
"java.net.PlainSocketImpl.socketSetOption() calls itself"
This bug did not create a much of a problem since setOption() is usually
called for setting socket options.
jdk/src/windows/classes/java/net/PlainSocketImpl.java
public void setOption(int opt, Object val) throws SocketException {
setOption(opt, val); // Why not impl.setOption(opt, val);?
}
public Object getOption(int opt) throws SocketException {
return impl.getOption(opt);
}
More generally, is there a general way to pass a non
StandardSocketOptions option
the down to the socket fd without having to go through the JNI path on
Windows?
Not that I am aware of.
Note that on Linux at least the option can be passed directly to the
built-in C native path.
Sorry, I don't get this.
-Chris.
Thanks much!