[kaffe] weird GC error with bad class format
Timothy Stack
stack at cs.utah.edu
Mon Feb 3 13:44:01 PST 2003
> Could you post a small patch?
attached
> cheers,
> dalibor topic
tim
-------------- next part --------------
Index: libraries/clib/native/SystemClassLoader.c
===================================================================
RCS file: /cvs/kaffe/kaffe/libraries/clib/native/SystemClassLoader.c,v
retrieving revision 1.6
diff -u -r1.6 SystemClassLoader.c
--- libraries/clib/native/SystemClassLoader.c 29 Jul 2002 14:52:13 -0000 1.6
+++ libraries/clib/native/SystemClassLoader.c 3 Feb 2003 21:43:04 -0000
@@ -78,7 +78,8 @@
* upgrade error to an exception if *this* class wasn't found.
* See discussion in Class.forName()
*/
- if (!strcmp(info.classname, "java.lang.NoClassDefFoundError")) {
+ if ((info.type & KERR_EXCEPTION)
+ && !strcmp(info.classname, "java.lang.NoClassDefFoundError")) {
/*
* However, we don't upgrade if it is a second attempt
* to load a class whose loading has already failed.
@@ -105,11 +106,6 @@
"%s", info.mess);
discardErrorInfo(&info_tmp);
}
- }
- else if ((info.type & KERR_EXCEPTION)
- && !strcmp(info.classname, "java.lang.NoClassDefFoundError"))
- {
-
}
if (name != buffer) {
More information about the kaffe
mailing list