plug-in loading classes question [message #448375] |
Mon, 24 April 2006 07:46  |
Eclipse User |
|
|
|
Hi!
I've got a question which relates to loading classes in different plug-ins:
I've got
"PluginA" with package "a.b.c"
"PluginB" with package "a.b.c"
Both have got a class "Hello" in the package "a.b.c"
==> PluginA.a.b.c.Hello
==> PluginB.a.b.c.Hello
"PluginA.a.b.c.Hello" has a method called "helloWorld"
"PluginB.a.b.c.Hello" has a method called "helloUnderWorld"
Now PluginA is loading first.
When PluginB is calling the method "helloUnderWorld" an exception is thrown:
"noSuchMethodError".
I thought that every plugin has its own classloader. So, why does the
"PluginB.a.b.c.Hello" class not override the class "PluginA.a.b.c.Hello",
thus the method "helloUnderWorld" can be found?
Am I missing something in this context, because how will you guarantee, if
you've 100 plugins and no plugin knows the source of any other, that this
problem will not occure?
Thx, Christian
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03736 seconds