You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Daniel Gredler (JIRA)" <de...@tapestry.apache.org> on 2007/09/29 07:40:50 UTC

[jira] Closed: (TAPESTRY-1702) Missing coercion from primitive arrays to List

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

Daniel Gredler closed TAPESTRY-1702.
------------------------------------

       Resolution: Fixed
    Fix Version/s: 5.0.6

Fixed in SVN, thanks for the patch. The final solution was a little bit different, in that I added new coercions for each of the specific primitive array types, rather than bolting the funtionality onto the Object -> List coercion. Take a look in SVN if you're interested in the details.

> Missing coercion from primitive arrays to List
> ----------------------------------------------
>
>                 Key: TAPESTRY-1702
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1702
>             Project: Tapestry
>          Issue Type: Bug
>          Components: tapestry-ioc
>    Affects Versions: 5.0.5
>            Reporter: Davor Hrg
>            Assignee: Daniel Gredler
>            Priority: Critical
>             Fix For: 5.0.6
>
>         Attachments: TAPESTRY-1702.patch
>
>
> int[] does not get not coerced into List of Integers.
> int[] value gets recognized as an object, not an Object[] which is true for all primitive type arrays.
> even if it goes to Object[] -> List coercer the code there: Arrays.asList will create an 
> list containing the array, instead containing the values from the array.
> I've noticed this issue when supplying int[] to loop component ....

-- 
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: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org