|
From: <bc...@wo...> - 2001-11-10 20:43:24
|
>Before saying anything more, I would like to know what is happening in this >case: Take a look at bugtests/test338 which I hope illustrate the issue. >- which classloader is loading the classes from jython.jar The sun.misc.Launcher$AppClassLoader. >- which classloader is loading the classes using PythonInterpreter The custom classloader (Multi). >- why import loads the right class but BytecodeLoader not ??? Ahh yes. The superclass is not imported by python but loaded by the Multi loader and inserted manually into the interpreter namespace. If the superclass is imported imto the script, the example will still fail, but that is a feature <wink>. >- the content of sys.path and CLASSPATH In the test338 example the guilty superclass can be found by the CLASSPATH, in the sys.path and by the custom classloader. There is amble opportunity to load the guilty superclass by the wrong classloader here. regards, finn |