[ 
https://issues.apache.org/jira/browse/FELIX-2779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pierre Bourret closed FELIX-2779.
---------------------------------


OK : tested with iPOJO-1.8.0

> iPOJO manipulator badly supports custom annotation attributes of type Class
> ---------------------------------------------------------------------------
>
>                 Key: FELIX-2779
>                 URL: https://issues.apache.org/jira/browse/FELIX-2779
>             Project: Felix
>          Issue Type: Bug
>          Components: iPOJO
>    Affects Versions: iPOJO-1.6.0
>            Reporter: Pierre Bourret
>            Assignee: Clement Escoffier
>            Priority: Minor
>             Fix For: iPOJO-1.8.0
>
>         Attachments: 
> FixBadClassParameterHandlingInCustomAnnotationVisitor.patch
>
>
> I've written a custom handler and its corresponding annotation :
>    public @interface Portlet {
>       ...
>       Class<? extends PortletPresentation> portletClass();
>       ...
>    }
> Then I've defined a component using this annotation :
>    @Component
>    @Portlet(..., portletClass=DummyComponentPortletImpl.class)
>    public class DummyComponentImpl {
>       ...
>    }
> The problem is that the metadata computed by the manipulator doesn't hold the 
> right value for the portletClass attribute :
> I got "Lfr/liglab/adele/icasa/portal/impl/test/DummyComponentPortletImpl;" 
> instead of "fr.liglab.adele.icasa.portal.impl.test.DummyComponentPortletImpl".
> Despite it is still possible to deduce the original class name from this 
> strange string, isn't the attribute value supposed to contain the real class 
> name instead of a Java internal type name ?

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to