PatchSet 5458 
Date: 2004/11/14 18:02:22
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Turn NIO locks unimplemented exceptions into IOExceptions

2004-11-14  Mark Wielaard  <[EMAIL PROTECTED]>

        libraries/clib/nio/FileChannelImpl.c
        (Java_gnu_java_nio_channels_FileChannelImpl_lock):
        Throw IOException.
        (Java_gnu_java_nio_channels_FileChannelImpl_unlock):
        Likewise.

Members: 
        ChangeLog:1.3004->1.3005 
        libraries/clib/nio/FileChannelImpl.c:1.7->1.8 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.3004 kaffe/ChangeLog:1.3005
--- kaffe/ChangeLog:1.3004      Sun Nov 14 17:26:56 2004
+++ kaffe/ChangeLog     Sun Nov 14 18:02:22 2004
@@ -1,3 +1,11 @@
+2004-11-14  Mark Wielaard  <[EMAIL PROTECTED]>
+
+       libraries/clib/nio/FileChannelImpl.c
+       (Java_gnu_java_nio_channels_FileChannelImpl_lock):
+       Throw IOException.
+       (Java_gnu_java_nio_channels_FileChannelImpl_unlock):
+       Likewise.
+
 2004-11-14  Dalibor Topic  <[EMAIL PROTECTED]>
 
        * test/regression/ProhibitedClass.java:
Index: kaffe/libraries/clib/nio/FileChannelImpl.c
diff -u kaffe/libraries/clib/nio/FileChannelImpl.c:1.7 
kaffe/libraries/clib/nio/FileChannelImpl.c:1.8
--- kaffe/libraries/clib/nio/FileChannelImpl.c:1.7      Tue Sep 21 20:22:25 2004
+++ kaffe/libraries/clib/nio/FileChannelImpl.c  Sun Nov 14 18:02:24 2004
@@ -491,7 +491,7 @@
                                                jlong size UNUSED, jboolean 
shared UNUSED, 
                                                jboolean wait_lock UNUSED)
 {
-  (*env)->ThrowNew(env, (*env)->FindClass(env, 
"java.lang.UnsupportedOperationException"), 
"gnu.java.nio.channels.FileChannelImpl.lock");
+  (*env)->ThrowNew(env, (*env)->FindClass(env, "java.io.IOException"), 
"java.nio.FileChannelImpl.lock(): not implemented");
   return false;
 }
 
@@ -499,7 +499,7 @@
 Java_gnu_java_nio_channels_FileChannelImpl_unlock(JNIEnv *env UNUSED, jobject 
filechannel UNUSED, jlong position UNUSED,
                                                  jlong size UNUSED)
 {
-  (*env)->ThrowNew(env, (*env)->FindClass(env, 
"java.lang.UnsupportedOperationException"), 
"gnu.java.nio.channels.FileChannelImpl.lock");
+  (*env)->ThrowNew(env, (*env)->FindClass(env, "java.io.IOException"), 
"java.nio.FileChannelImpl.unlock(): not implemented");
 }
 
 /*

_______________________________________________
kaffe mailing list
[EMAIL PROTECTED]
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe

Reply via email to