From: Updike, Clark <Clark.Updike@...>
> In an attempt to verify you analysis, I added the instance initializer shown
> below to MemoryClassLoader. The output indicates that MemoryClassLoader
> successfully loaded PyNone but the original IllegalAccessError still occurs.
> Therefore, unless some kind of delegation took place on PyNone that didn't
> take place on PySystemState, I don't think your analysis is correct. But,
> regardless, let me get to the heart of the matter...
Some kind of delegation took place <wink>
You can read
in particular findClass vs. loadClass,
and if you are not convinced it is easy to check:
For the rest path is an instance field of PySystemState,
and PythonInterpreter can be constructed as
new PythonInterpreter(null,new PySystemState())