hg: jdk7/tl/jdk: 5025260: Register methods should throw ClosedChannelException instead of NPE

xueming.shen at sun.com xueming.shen at sun.com
Mon Oct 13 14:54:38 PDT 2008


Changeset: 214ebdcf7252
Author:    sherman
Date:      2008-10-13 14:45 -0700
URL:       http://hg.openjdk.java.net/jdk7/tl/jdk/rev/214ebdcf7252

5025260: Register methods should throw ClosedChannelException instead of NPE
Summary: update the spec and implementation to throw ClosedSelectorException
Reviewed-by: alanb

! src/share/classes/java/nio/channels/SelectableChannel.java
! src/share/classes/java/nio/channels/spi/AbstractSelectableChannel.java
! src/share/classes/sun/nio/ch/AbstractPollSelectorImpl.java
! src/solaris/classes/sun/nio/ch/DevPollSelectorImpl.java
! src/solaris/classes/sun/nio/ch/EPollSelectorImpl.java
! src/windows/classes/sun/nio/ch/WindowsSelectorImpl.java
+ test/java/nio/channels/Selector/CloseThenRegister.java




More information about the serviceability-dev mailing list