[forge-issues] [JBoss JIRA] (FORGE-779) Class parameters are not correctly loaded for the consuming addon's classloader

George Gastaldi (JIRA) jira-events at lists.jboss.org
Mon Apr 29 15:42:55 EDT 2013


     [ https://issues.jboss.org/browse/FORGE-779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

George Gastaldi updated FORGE-779:
----------------------------------

    Fix Version/s: 2.0.0.Alpha4
                       (was: 2.0.0.Alpha3)

    
> 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
>            Reporter: George Gastaldi
>            Assignee: Lincoln Baxter III
>            Priority: Critical
>             Fix For: 2.0.0.Alpha4
>
>
> 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: http://www.atlassian.com/software/jira


More information about the forge-issues mailing list