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
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.
Log in to post a comment.