Is there a bug in XML defined copy-on-reference or is the doc old?

17 views
Skip to first unread message

Lars

unread,
Oct 15, 2018, 3:29:15 PM10/15/18
to Dozer Mapper
Hi...

I just upgraded in my application from Dozer 5.4.0 to 6.4.1. No big issues. But I have a copy-on-reference mapping for org.joda.time.DateTime. And my unit test failed, because after the mapping the new DateTime had an newer (now) time stamp.

My configuration looked like this:

            <copy-by-reference>
                org.joda.time.DateTime
            </copy-by-reference>

And it worked after I took away the newlines:

            <copy-by-reference>org.joda.time.DateTime</copy-by-reference>

But in the documentation https://dozermapper.github.io/gitbook/documentation/copybyreference.html, there are newlines in the example (second block)

Can anyone verify this?

Thanks
Lars
Reply all
Reply to author
Forward
0 new messages