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

Konrad Windszus edited comment on FELIX-2478 at 1/18/11 8:58 AM:
-----------------------------------------------------------------

In my opinion this issue 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.

      was (Author: kwin):
    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.

Reply via email to