#21 Bug fix not indexed properties (List - Vector)

Dozer v.4.4
Tom Rigole

Whenever a List type is used as the destination of an indexed property, Dozer instantiates a new ArrayList as the implementation type to be used. Now, some (legacy or badly programmed) systems do not declare instance variables with the basic interface types, but use implementation types such as 'java.util.Vector', which causes mapping failures.

We've fixed the bug by
1) determining if the declared type is an interface type, if so, instantiate an ArrayList (for List) or HashSet (for Set)
2) if the declared type is an implementation type, use reflection to create a new Collection instance


  • Matt Tierney

    Matt Tierney - 2008-12-06

    This patch has been applied and will be in the 4.4 release

  • Matt Tierney

    Matt Tierney - 2008-12-06
    • assigned_to: nobody --> mhtierney
    • status: open --> pending
  • Matt Tierney

    Matt Tierney - 2008-12-06
    • milestone: --> Dozer v.4.4
  • Matt Tierney

    Matt Tierney - 2008-12-17
    • 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