logo       

FYI: exception-return fix for VMSelector.c: msg#00149

java.classpath.patches

Subject: FYI: exception-return fix for VMSelector.c

hi all,
this adds a return statement after an error is thrown in jni code.

2005-03-18 Robert Schuster <thebohemian@gmx>

* native/jni/java-nio/gnu_java_nio_VMSelector.c: Added important
return statement after throwing exception.


cu
robert
Index: native/jni/java-nio/gnu_java_nio_VMSelector.c
===================================================================
RCS file:
/cvsroot/classpath/classpath/native/jni/java-nio/gnu_java_nio_VMSelector.c,v
retrieving revision 1.3
diff -u -r1.3 gnu_java_nio_VMSelector.c
--- native/jni/java-nio/gnu_java_nio_VMSelector.c 18 Mar 2005 03:06:23
-0000 1.3
+++ native/jni/java-nio/gnu_java_nio_VMSelector.c 18 Mar 2005 04:47:40
-0000
@@ -265,6 +265,7 @@
*/
JCL_ThrowException(env, "java/lang/InternalError",
"Not enough space in message buffer.");
+ return 0;
}

JCL_ThrowException (env, "java/io/IOException", message_buf);
_______________________________________________
Classpath-patches mailing list
Classpath-patches@xxxxxxx
http://lists.gnu.org/mailman/listinfo/classpath-patches
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise