[ 
https://issues.apache.org/jira/browse/TUSCANY-1848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Venkatakrishnan resolved TUSCANY-1848.
--------------------------------------

    Resolution: Fixed

Thanks for the patches.  Applied parts of the patch to 
java-implementation-runtime under r584750.  Applied entire patch to 
itest-properties under r584751

- Venkat

> 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
>            Assignee: Venkatakrishnan
>            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]

Reply via email to