Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6781363

New I/O: Update socket-channel API to jsr203/nio2-b99

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 7
    • 5.0u8, 6, 6u10, 7
    • core-libs
    • None
    • b50
    • generic, x86, sparc
    • generic, solaris_1, windows_xp, windows_vista

      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()

            alanb Alan Bateman
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: