elaatifi/orika — pull request #1 by papegaaij (2012-11-02 10:59:28+00:00)
Title: Polymorphic types on nested properties gives ClassCastException

Due to the cache in DefaultBoundMapperFacade for aToB and bToA, polymorphic types result in ClassCastExceptions when the type of the nested property does not match the type of the first mapped instance. This pull-request contains a testcase that shows the problem and a possible fix by removing the caches. I think the overhead of looking up the mapping strategy on every mapping can be neglected.