This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[PATCH] gnu.java.nio -- badly needed.
- From: Michael Koch <konqueror at gmx dot de>
- To: java-patches at gcc dot gnu dot org
- Date: Thu, 13 Feb 2003 09:52:11 +0100
- Subject: [PATCH] gnu.java.nio -- badly needed.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi list,
This should fix a compile time problem noone reported.
Michael
- --
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+S1y7WSOgCCdjSDsRAmngAJ4h1GOMrzZJLTY9OksphkfZmwg+LQCfRAej
Y+3yfKJspUVtNemaoleUxuI=
=ojLL
-----END PGP SIGNATURE-----
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/gcc/libjava/ChangeLog,v
retrieving revision 1.1691
diff -u -r1.1691 ChangeLog
--- ChangeLog 13 Feb 2003 08:40:35 -0000 1.1691
+++ ChangeLog 13 Feb 2003 08:48:25 -0000
@@ -1,5 +1,11 @@
2003-02-13 Michael Koch <konqueror@gmx.de>
+ * gnu/java/nio/natSocketChannelImpl.cc
+ (SocketConnect): This is not implemented yet.
+ (SocketBind): This is not implemented yet.
+
+2003-02-13 Michael Koch <konqueror@gmx.de>
+
* gnu/java/nio/natByteBufferImpl.cc,
gnu/java/nio/natCharBufferImpl.cc,
gnu/java/nio/natDoubleBufferImpl.cc,
Index: gnu/java/nio/natSocketChannelImpl.cc
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/java/nio/natSocketChannelImpl.cc,v
retrieving revision 1.1
diff -u -r1.1 natSocketChannelImpl.cc
--- gnu/java/nio/natSocketChannelImpl.cc 29 Nov 2002 07:56:58 -0000 1.1
+++ gnu/java/nio/natSocketChannelImpl.cc 13 Feb 2003 08:48:25 -0000
@@ -38,15 +38,7 @@
::java::net::InetAddress *addr,
jint port)
{
- int result = _Jv_connect_address (fd, addr, port, addr, port);
-
- if (result < 0)
- {
- char* strerr = strerror (errno);
- throw new ::java::io::IOException (JvNewStringUTF (strerr));
- }
-
- return result;
+ throw new ::java::io::IOException (JvNewStringUTF ("SocketConnect not implemented"));
}
jint
@@ -54,15 +46,7 @@
::java::net::InetAddress *addr,
jint port)
{
- int result = _Jv_bind_address (fd, addr, port);
-
- if (result < 0)
- {
- char* strerr = strerror (errno);
- throw new ::java::io::IOException (JvNewStringUTF (strerr));
- }
-
- return result;
+ throw new ::java::io::IOException (JvNewStringUTF ("SocketBind not implemented"));
}
jint