You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Venkatakrishnan (JIRA)" <tu...@ws.apache.org> on 2007/10/15 13:53:50 UTC
[jira] Resolved: (TUSCANY-1848) Tuscany cannot inject a many value
Property into an array
[ 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org