Selector doesn't implement Closeable
Alan Bateman
Alan.Bateman at Sun.COM
Thu Dec 3 11:31:39 PST 2009
Alan Bateman wrote:
> :
> I've created this bug to track it:
> 6903753: (se) Selector should implement Closeable
>
Rémi - did you want to push this one and I can be reviewer?
Alternatively, I can do it and you can be reviewer?
-Alan.
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