|
From: <Kli...@t-...> - 2003-09-29 19:41:28
|
Dave Landers wrote: > They can, if they are loaded by separate peer classloaders. If one of the > versions is in a "parent" classloader (like in CLASSPATH) then you are right > that you can not override it with another version. But if you create > separate classloaders as peers of each other then these two classloaders can > load two different versions of the same class. Thanks for all of you enlightening me :) I am not a classloader expert, so I did not know of that separation possibility. But I just thought about the fact, that all loaded classes are available inside jedit to all other plugins. So I simply reasoned that there can only be one version of a class in memory. Can you differ between private and public classes of a classloader? If you can't, it would not be possible to implement the suggested feature for having different versions of some utility jar for different plugins without breaking the plugin inter-operability, wouldn't it? Alex -- Alexander Klimetschek <kli...@t-...> |