From a15cf08d242fc5897ba60566b5f4b806644555d9 Mon Sep 17 00:00:00 2001 From: sjaakd Date: Sun, 23 Mar 2014 15:15:41 +0100 Subject: [PATCH] #180 fix --- .../org/mapstruct/ap/model/source/builtin/JaxbElemToValue.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/src/main/java/org/mapstruct/ap/model/source/builtin/JaxbElemToValue.java b/processor/src/main/java/org/mapstruct/ap/model/source/builtin/JaxbElemToValue.java index c4e69abbe..463b7a60f 100644 --- a/processor/src/main/java/org/mapstruct/ap/model/source/builtin/JaxbElemToValue.java +++ b/processor/src/main/java/org/mapstruct/ap/model/source/builtin/JaxbElemToValue.java @@ -41,7 +41,7 @@ public class JaxbElemToValue extends BuiltInMethod { public boolean doTypeVarsMatch(Type sourceType, Type targetType) { boolean match = false; if ( sourceType.getTypeParameters().size() == 1 ) { - match = sourceType.getTypeParameters().get( 0 ).equals( targetType ); + match = sourceType.getTypeParameters().get( 0 ).isAssignableTo( targetType ); } return match; }