[kf-users] Problem with SCR bundle and properties
Gunnar Ekolin
ekolin at makewave.com
Wed Apr 13 15:13:40 CEST 2011
On Wed, Apr 13, 2011 at 02:22:47PM +0200, Jean-Baptiste Reich wrote:
> Hello,
>
> I am using the SCR bundle (version 3.0.0) and when I declare a property of type
> Integer without value I get an int[] which is normal.
> <property name="intArray" type="Integer" />
>
> But I have discovered that when I declare only one value I get an Integer
> instead of an int[]
> <property name="intArray" type="Integer">
> ??10
> </property>
>
> And when I add another value I get an int[]
> <property name="intArray" type="Integer">
> ??10
> ??11
> </property>
>
> Is this the normal behavior ?
No, it looks like a bug; according to the specification the resulting
property value should allways be an array of the appropriate type when
the "value"-attribute is not present (i.e., when using the body to
specify the value(s)).
Please file a bug-report in the tracker at
http://sourceforge.net/tracker/?atid=567241&group_id=82798&func=browse
The current implementation (3.0.0) never returns an array when the
number of values is exactly one.
BR,
\GE
More information about the Knopflerfish-users
mailing list