[forge-dev] Project injection issue in a plugin and classloader

Jérémie jer at printstacktrace.org
Fri Aug 3 02:32:08 EDT 2012


Hi all,

I want to inject the current project in my plugin.
This works well when running my unit tests, but not after installation via
"forge source-plugin" or "forge git-plugin".

This problem seems to come from a different classloader for the
"javax.inject.Inject" class.
At line 221 in org.jboss.weld.util.Bean:          for (WeldField<?, ?>
annotatedField : t.getDeclaredWeldFields(Inject.class))
We have Inject class with a different classloader of the key used in the
map.

My code can be found here : https://github.com/jerr/forge-eclipse-plugins

The modules installed into the $${home}/.forge directory seem loaded beings
in a different classloader.

Do you have a good practice for this?
Thank you for your help.


Jeremie.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/forge-dev/attachments/20120803/7e7903e8/attachment.html 


More information about the forge-dev mailing list