This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

FYI: Patch: gnu.java.nio.SelectorImpl


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi list,


I commited the attached patch to fix two method declarations.


Michael
- -- 
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/1fqzWSOgCCdjSDsRAljVAJ4lWsXN5yXyifFyOjIazN4We9N7AwCeNXKo
wLTqT34GvEz+HLTjNQNe2Z0=
=it5P
-----END PGP SIGNATURE-----
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.2426
diff -u -b -B -r1.2426 ChangeLog
--- ChangeLog	8 Dec 2003 12:45:58 -0000	1.2426
+++ ChangeLog	9 Dec 2003 15:22:08 -0000
@@ -1,3 +1,9 @@
+2003-12-09  Michael Koch  <konqueror@gmx.de>
+
+	* gnu/java/nio/SelectorImpl.java
+	(implSelect): Throws IOException.
+	(select): Likewise.
+
 2003-12-08  Michael Koch  <konqueror@gmx.de>
 
 	Fix for PR libgcj/13176.
Index: gnu/java/nio/SelectorImpl.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/java/nio/SelectorImpl.java,v
retrieving revision 1.11
diff -u -b -B -r1.11 SelectorImpl.java
--- gnu/java/nio/SelectorImpl.java	2 Dec 2003 15:03:21 -0000	1.11
+++ gnu/java/nio/SelectorImpl.java	9 Dec 2003 15:22:08 -0000
@@ -104,7 +104,8 @@
 
   // A timeout value of -1 means block forever.
   private static native int implSelect (int[] read, int[] write,
-                                        int[] except, long timeout);
+                                        int[] except, long timeout)
+    throws IOException;
 
   private final int[] getFDsAsArray (int ops)
   {
@@ -144,6 +145,7 @@
   }
 
   public int select (long timeout)
+    throws IOException
   {
     if (!isOpen())
       throw new ClosedSelectorException ();

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]