bastiao / jspf

Automatically exported from code.google.com/p/jspf
0 stars 1 forks source link

No class def found error when load multi-depended-plugins in JARs #44

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I add plugins from a path that contains plugins in JARs:
PluginManager pm = PluginManagerFactory.createPluginManager();
pm.addPluginsFrom((new File(getPluginsPath())).toURI());
2. JSPF throws an no class def found error.

The problem is:
I see the FileLoader tried to init plugin after it found plugin location. If 
that, when a plugin is at top of location list, but use @InjectPlugin plugin 
that places at the last position of location list, then the class loader could 
not found code for that @InjectPlugin and throw an error.

Hope this issue will be fixed soon.
Sorry for my bad English, thanks.

Original issue reported on code.google.com by doanvuon...@gmail.com on 21 Jun 2014 at 12:05