#58 primitive array --> List issue

closed
None
5
2006-10-16
2006-09-19
No

Post:

have two classes, each with one field named
*values*. In the source class the field is an int[]
on the second class the field is of List type.

How do I tell dozer (2.2) to convert from int[] ->
List<Integer>? I have tried to use hints, but I can't
get it right.

Comments: mht I have reproduced this issue. See
KnownFailures.testPrimitiveArrayToList_UsingHint()
unit test.

Appears to be a problem with the following code in
the MappingProcessor....

return addOrUpdateToList(fieldMap, Arrays.asList
((Object[]) sourceCollectionValue), classMap,
destObj,
destEntryType);

It assumes object array for src value

Discussion

  • Matt Tierney

    Matt Tierney - 2006-09-27

    Logged In: YES
    user_id=1236069

    This has been fixed. The suspected code turned out to be
    the issue.

     
  • Matt Tierney

    Matt Tierney - 2006-09-27
    • status: open --> pending
     
  • Matt Tierney

    Matt Tierney - 2006-10-16
    • status: pending --> closed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks