[
https://issues.apache.org/jira/browse/TUSCANY-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Combellack updated TUSCANY-1848:
-------------------------------------
Attachment: PropertyInjectionIntoArray_iTest.patch
PropertyInjectionIntoArray.patch
The file PropertyInjectionIntoArray.patch adds ArrayObjectFactoryImpl that is
used when the type of the injection point is an Array
The file PropertyInjectionIntoArray_iTest.patch adds tests to the Propety iTest
to test injecting multi value properties into properties that are defined as
Arrays.
> Tuscany cannot inject a many value Property into an array
> ---------------------------------------------------------
>
> Key: TUSCANY-1848
> URL: https://issues.apache.org/jira/browse/TUSCANY-1848
> Project: Tuscany
> Issue Type: Bug
> Components: Java SCA Core Runtime
> Affects Versions: Java-SCA-1.0
> Environment: SVN Head revision #584454
> Linux
> Reporter: Mark Combellack
> Priority: Minor
> Fix For: Java-SCA-Next
>
> Attachments: PropertyInjectionIntoArray.patch,
> PropertyInjectionIntoArray_iTest.patch
>
>
> Currently, Tuscany cannot inject multi value properties into methods/fields
> that are defined as an array type. For example, the following injection
> scenarios do not work:
> @Property(name = "daysOfTheWeek")
> protected String[] daysOfTheWeek;
>
> @Property(name = "integerNumbers")
> protected Integer[] integerNumbers;
> @Property(name = "intNumbers")
> protected int[] intNumbers;
> @Property(name = "sdoArray")
> protected DataObject[] sdoArray;
> There is no sample in the Java Common Annotations and APIs specification that
> says this should be allowed. However, it does strongly suggest it should be:
> 1369 If the property is defined as an array or as a java.util.Collection,
> then the implied component type has a
> 1370 property with a many attribute set to true.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]