Selector doesn't implement Closeable

Alan Bateman Alan.Bateman at Sun.COM
Sun Dec 6 09:47:44 PST 2009


I didn't hear back from Rémi on this but I might as well push this into 
b78 and be done with it. Could I get a reviewer?

Thanks,
Alan.

Alan Bateman wrote:
> :
>
> diff -r d5a1c012921d src/share/classes/java/nio/channels/Selector.java
> --- a/src/share/classes/java/nio/channels/Selector.java Sun Nov 29 
> 15:24:32 2009 -0800
> +++ b/src/share/classes/java/nio/channels/Selector.java Thu Dec 03 
> 19:29:04 2009 +0000
> @@ -25,6 +25,7 @@
>
> package java.nio.channels;
>
> +import java.io.Closeable;
> import java.io.IOException;
> import java.nio.channels.spi.SelectorProvider;
> import java.util.Set;
> @@ -202,7 +203,7 @@ import java.util.Set;
>  * @see SelectionKey
>  */
>
> -public abstract class Selector {
> +public abstract class Selector implements Closeable {
>
>     /**
>      * Initializes a new instance of this class.



More information about the nio-dev mailing list