The .hh files created with the header file generator are all
included here as are the C functions implementing these methods.
- $Id: native.c 861 2004-01-06 20:55:56Z twisti $
+ $Id: native.c 862 2004-01-06 23:42:01Z stefan $
*/
struct java_lang_ClassLoader *SystemClassLoader = NULL;
/* for raising exceptions from native methods */
-java_objectheader* exceptionptr = NULL;
+THREADSPECIFIC java_objectheader* _exceptionptr = NULL;
/************* use classinfo structure as java.lang.Class object **************/
}
/* throws a NoClassDefFoundError with message */
- exceptionptr = native_new_and_init_string(class_java_lang_NoClassDefFoundError,
+ *exceptionptr = native_new_and_init_string(class_java_lang_NoClassDefFoundError,
javastring_new(classname));
}
}
/* throws a LinkageError with message */
- exceptionptr = native_new_and_init_string(class_java_lang_LinkageError,
+ *exceptionptr = native_new_and_init_string(class_java_lang_LinkageError,
javastring_new(classname));
}
}
/* field was not found, raise exception */
- exceptionptr = native_new_and_init(class_java_lang_NoSuchFieldException);
+ *exceptionptr = native_new_and_init(class_java_lang_NoSuchFieldException);
return NULL;
}
}
/* field was not found, raise exception */
- exceptionptr = native_new_and_init(class_java_lang_NoSuchFieldException);
+ *exceptionptr = native_new_and_init(class_java_lang_NoSuchFieldException);
return -1;
}
java_objectheader *o;
/* if c==NULL it is probebly because loader_load failed */
- if (!c) return exceptionptr;
+ if (!c) return *exceptionptr;
o = builtin_new(c); /* create object */
java_objectheader *o;
/* if c==NULL it is probebly because loader_load failed */
- if (!c) return exceptionptr;
+ if (!c) return *exceptionptr;
o = builtin_new(c); /* create object */