[
https://issues.apache.org/jira/browse/FELIX-2779?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Clement Escoffier resolved FELIX-2779.
--------------------------------------
Resolution: Fixed
I've applied the patch !
Thanks.
PS: the strange String is the Class internal name.
> 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.
-
You can reply to this email to add a comment to the issue online.