From: Godmar Back (gback@cs.utah.edu)
Date: Tue Dec 08 1998 - 13:44:47 EST
Basically, I'd do the following:
* move declaration of findInJar from findInJar.c to file.h
* remove declaration of findInJar from ClassLoader.c
* remove java_lang_ClassLoader_init from ClassLoader.c
* fix java_lang_ClassLoader_getSystemResourceAsBytes0 to use proper
findInJar. Decide on whether to return null or raise exception if
findInJar fails.
* move code to convert javaString to Utf8 out of
java_lang_ClassLoader_findSystemClass0 in separate function f.
Have java_lang_ClassLoader_findSystemClass0 call f.
* change lookupClassEntry to take a flag that says whether to create
a new entry if none was found. Change all calls to lookupClassEntry
in kaffevm to add a "true" arg for that flag.
* implement java_lang_ClassLoader_findLoadedClass0 as follows:
+ convert javastring to Utf8 using f.
+ invoke lookupClassEntry with "false"
+ return result.
Does that sound okay?
I don't think I'll be able to get to it today, though, because I have
other obligations and need to stop hacking on kaffe for now.
- Godmar
This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:08 EDT