]
Lincoln Baxter III closed FORGE-779.
------------------------------------
Fix Version/s: 2.0.1.Final
(was: 2.x Future)
Resolution: Done
DONE.
Class parameters are not correctly loaded for the consuming
addon's classloader
-------------------------------------------------------------------------------
Key: FORGE-779
URL:
https://issues.jboss.org/browse/FORGE-779
Project: Forge
Issue Type: Bug
Components: Furnace (Container)
Reporter: George Gastaldi
Assignee: Lincoln Baxter III
Priority: Critical
Fix For: 2.0.1.Final
Having the following scenario:
Eclipse plugin -> calls ConverterFactory -> passes Resource.class as a parameter
{code:java}
ConverterFactory.getConverter(File.class, Resource.class)
{code}
in ResourceConverterGenerator (resources addon):
{code:java}
@Override
public boolean handles(Class<?> source, Class<?> target)
{
return Resource.class.isAssignableFrom(target);
}
{code}
Returns false, because the classloader that loaded the Resource class is the Eclipse
classloader, not the Resource addon classloader AND Resource.class is not visible in the
convert addon.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: