You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Konrad Windszus (JIRA)" <ji...@apache.org> on 2011/01/18 14:59:43 UTC

[jira] Commented: (FELIX-2478) Cardinality attribute for Property annotation should be of type string

    [ https://issues.apache.org/jira/browse/FELIX-2478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12983193#action_12983193 ] 

Konrad Windszus commented on FELIX-2478:
----------------------------------------

In my opinion this issues has to be reopened, until the original issue is really fixed. It is not clear to developers why an annotation with type "int" throws NumberFormatException (in case of Integer.MAX_VALUE). Maybe you could change the implementation here, so that really all integers are accepted. Also the documentation (http://felix.apache.org/site/scr-annotations.html#SCRAnnotations-Property) needs an update.

> Cardinality attribute for Property annotation should be of type string
> ----------------------------------------------------------------------
>
>                 Key: FELIX-2478
>                 URL: https://issues.apache.org/jira/browse/FELIX-2478
>             Project: Felix
>          Issue Type: Bug
>          Components: Maven SCR Plugin, SCR Annotations
>    Affects Versions:  maven-scr-plugin-1.4.4,  scr annotations 1.3.0
>            Reporter: Carsten Ziegeler
>            Assignee: Carsten Ziegeler
>             Fix For:  maven-scr-plugin-1.6.0, scr annotations 1.4.0
>
>
> Currently it is not possible to define unlimited arrays or vectors using the cardinality attribute of the property.
> While the doc states to use Integer.MAX_VALUE, this creates a parsing exception in the code and even if that would work, later on a string is expected with the value "+"

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.