Skip to main content



      Home
Home » Newcomers » Newcomers » Plugin classloadeer`
Plugin classloadeer` [message #170044] Fri, 08 September 2006 10:16
Eclipse UserFriend
Originally posted by: alex.gmail.com

Dear all,

i have two plugins:
- the first one ("model") contain classes that rapresent the
data-structure used by the other plugin
- the second ("view") work on the element defined by the "model" one (it
is controller/view)

Inside the "model" plugin i have a couple of utility classes that offer
public static method that work (only) on "model" related entity and are
used by the "view" plugin.

Everything is fine, apart for the following scenario:
in the view i use reflection in order to find a method of an object
i.e. Method m = thisclass.getMethod(methodName, new Class[] { ... });
and then to invoke it
i.e. method.invoke(this, new Object[] { object });
inside the method 'methodName' i have a call to one of the public static
method described above.
Unfortunatelly it doesn't work and i get a 'NoClassDefFoundError'
execpetion.
It seems that the classloader used for the reflective invocation of the
'methodname' doesn't support the dependant-plugin chain as the std eclipse
one.

Is it there a way to solve this problem?
It seems that for Eclipse 3.2 it is possible to tweak the
buddy-classloading property of the osgi bundle, but i'm still using 3.1
and the plugin.xml in order to keep backward compatibility.

TIA
Previous Topic:JavaDoc Template Editing
Next Topic:sharing workspaces
Goto Forum:
  


Current Time: Sat May 10 01:32:49 EDT 2025

Powered by FUDForum. Page generated in 0.04323 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top