I'm trying to setup a property to be an array without giving it any initial 
values.
I've tried using this:

@Property(cardinality = Integer.MAX_VALUE)
protected static final String PROP_ATTRIBUTES = "ldap.provider.attributes";

But get this in my build:
java.lang.NumberFormatException: For input string: "Integer.MAX_VALUE"
        at 
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
        at java.lang.Integer.parseInt(Integer.java:449)
        at java.lang.Integer.valueOf(Integer.java:554)
        at 
org.apache.felix.scrplugin.tags.annotation.defaulttag.Util.getIntValue(Util.java:58)
        at 
org.apache.felix.scrplugin.tags.annotation.defaulttag.PropertyTag$1.cardinality(PropertyTag.java:47)
        at 
org.apache.felix.scrplugin.tags.annotation.defaulttag.PropertyTag.getNamedParameterMap(PropertyTag.java:226)
        at 
org.apache.felix.scrplugin.tags.annotation.defaulttag.AbstractTag.getNamedParameter(AbstractTag.java:47)
...

I'm using version 1.0.0 of the annotations. Am I doing something wrong?

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to