#141 inheritance problems with custom-converters on fields

Dozer v5.3.3
closed-fixed
5
2011-10-09
2008-04-28
No

Ok following situation:

I use version 3.4, cause in the versions above 4 the inheritance-mapping is
broken.

The inheritance structure is like this:

c -> b -> a
z -> y -> x

on the classes a and x is a property with the name test (same name !!!)

The problem is, that dozer creates two superClassMaps. One with the
custom-converter declared, one without the custom-converter declared.

If the custom-converter would be executed decides alone the method
superClasses.toArray().

Cause this array would be used to process the super-type-mapping. And if
the super-class-mapping of b to y is at the first position, the
custom-converter wouldn't be executed.

A workaround is, to declare the custom-converter also on the b to y
mapping.

A test-case is provided, but it fails not everytime. Perhaps by you it
fails never. I had a rate of 50% failings (I think the trigger is the
add-method to the set)

I my view this bug has no relation to the bug 1950626

Discussion

  • Matt Tierney

    Matt Tierney - 2008-12-16

    Added failing test case. The patch provided resolved this test case, but broke other regression tests.

     
  • dmitry (lv)

    dmitry (lv) - 2011-10-09
    • labels: --> Mapping Issue
    • milestone: --> Dozer v5.3.3
    • assigned_to: nobody --> buzdin
    • status: open --> closed-fixed
     
  • dmitry (lv)

    dmitry (lv) - 2011-10-09

    fixed by provided patch

     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks