From: <bc...@wo...> - 2001-11-08 22:28:53
|
[John Goerzen] >Tried, still didn't help.. > >Of note: when I print the loader of ListBO from within Python, it says >com.lutris.classloader.MultiClassLoader. When I print the loader of >the superclass of ListBOFoo from within Java (that superclass is the >same ListBO), it says sun.misc.Launcher$AppClassLoader! More and more >puzzling. That is because the BytecodeLoaders happens to search the SyspathJavaLoader before searching the referent class loaders. It's a bug. > I feel that I'm SO CLOSE! Try calling Py.getSystemState().setClassLoader(this.getClass().getClassLoader()); It will effectively disable attempts to import java classes from sys.path and instead only try to load them from the MultiClassLoader. >Also: I'm now pulling the *class* from python to Java, not an instance of it. >That seems to help, maybe... Nah. regards, finn |