I know that interface mapping is a bit fragil at the moment and is to be re-designed, but still I encountered the following bug in the current trunc.
I have an interface Taxer that extends Member. Also: a TaxerDefault that implements Taxer and extends MemberDefault and that implements Member.
In the dozer mappigng file I have custom bean creator that returns the TaxerDefault when mapping a Taxer instance.
The dozer mapping file contains a mapping between Taxer and TaxerDto and Member and MemberDto.
This latter mapping is however ignored by Dozer when mapping a Taxer instance to TaxerDto.
BTW: the TaxerDto extends MemberDto and are concrete classes.
In the method ClassMappings.findInterfaceMappings only the direct interfaces of TaxerDefault are used and not their super interfaces to determine the interface mappings. So the classMapping Member to MemberDto is never created.
Log in to post a comment.