JDK-6781363 : New I/O: Update socket-channel API to jsr203/nio2-b99
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 5.0u8,6,6u10,7
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS:
    generic,solaris_1,windows_xp,windows_vista generic,solaris_1,windows_xp,windows_vista
  • CPU: generic,x86,sparc
  • Submitted: 2008-12-05
  • Updated: 2017-05-16
  • Resolved: 2009-03-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b50Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Description
The jsr203/nio2 defined updates to the socket-channel API were integrated into jdk7-b36 via 4640544. There have been a few small improvements to this API based on feedback and issues found since. This bug tracks sync'ing this part of the API with jsr203/nio2-b99 as follows:

1. The description of the IP_TOS and TCP_NODELAY socket options in java.net.StandardSocketOption has been clarified.

2. The MulticastChannel#join methods now define that UOE be thrown if the channel's socket is not an Internet Protocol socket.

3. The MembershipKey#drop() and MembershipKey#unblock methods no longer throw IOException.

4. The NetworkChannel#setOption/getOption now define UOE to be thrown if the socket option not supported.

5. NetworkChannel#getLocalAddress() now defines ClosedChannelException to be thrown if invoked on a closed channel.

6. The following methods have been renamed (no semantic changes):
MembershipKey#getChannel() -> channel()
MembershipKey#getGroup() -> group()
MembershipKey#getNetworkInterface() -> networkInterface()
MembershipKey#getSourceAddress() -> sourceAddress()
NetworkChannel#options() -> supportedOptions()

7. The following methods have been renamed and now defined that ClosedChannelException be thrown if invoked on a closed channel:
SocketChannel#getConnectedAddress() -> getRemoteAddress()
DatagramChannel#getConnectedAdress() -> getRemoteAddress()

Comments
EVALUATION As per evaluation.
05-02-2009