Mapper as abstract class with decorator does not work

461 views
Skip to first unread message

erik.p...@gmail.com

unread,
Oct 9, 2014, 9:18:58 AM10/9/14
to mapstru...@googlegroups.com
Hi,

in the documentation one can find 2 features, which work independent, but not together:

http://mapstruct.org/documentation/#section-03-02
=> we can define mapper as abstract classes instead of interfaces

http://mapstruct.org/documentation/#section-09
=> we can define decorators (in our case an abstract class, too)

But we cannot decorate an abstract-class-mapper (the decorator is not executed). The decorator works fine on interface-mappers.
(we are using 1.0.0.beta2)

We solved this by moving the implementation-part of the abstrac-class-mapper to the decorator and converting the mapper to an interface (which means in fact loosing feature 03-02).
It would be nice if both features could work together.

Thank you

Gunnar Morling

unread,
Oct 9, 2014, 5:48:51 PM10/9/14
to erik.p...@gmail.com, mapstru...@googlegroups.com
Hi Erik,

This sounds like a bug to me. Could you open an issue in our tracker (https://github.com/mapstruct/mapstruct/issues)? If possible, a test case demonstrating the issue would be very helpful.

Thanks,

--Gunnar


--
You received this message because you are subscribed to the Google Groups "mapstruct-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mapstruct-use...@googlegroups.com.
To post to this group, send email to mapstru...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages