#205 Inheritance Mapping with Proxied Objects

Dozer v5.1
closed-fixed
7
2009-07-19
2009-07-09
Jesse Jose
No

Hi All,
The bug that I found with was while mapping Proxied Objects with inheritance mapping. I will try and explain the use case as best as possible
e.g. Let us suppose that there is a Class A which is the source class and it being mapped to Class X & Class Y, where Class Y extends Class X.
Dozer will currently fail to map Class A to Class X if Class A is proxied.
I think this problem may already have been noted because I found Unit tests which had been Ignored to avoid this problem so I have not provided an example
test case.
In essence the fix that I have done is change the ClassMappings->find(Class srcClass,Class destClass) method to check for Proxied classes as well.
I have attached a patch which fixes the problem and also I commented out the Ignore from the tests which this patch will fix.
Hope this will solve this problem.
I also encountered another problem which I think is already know as well, about Deep mapping of Indexed Proxied collections. I worked around the problem for now but if I have chance will look into this as well.
Hope this helps.

Cheers

Jesse

Discussion

  • Jesse Jose

    Jesse Jose - 2009-07-09
    • priority: 5 --> 7
     
  • dmitry (lv)

    dmitry (lv) - 2009-07-19
    • milestone: 888640 --> Dozer v5.1
    • assigned_to: nobody --> buzdin
    • status: open --> closed-fixed
     
  • dmitry (lv)

    dmitry (lv) - 2009-07-19

    fixed based on the 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