From 4f44cea1126539d545b8d1083853e5e19cca8235 Mon Sep 17 00:00:00 2001 From: Gunnar Morling Date: Thu, 15 Aug 2013 19:01:55 +0200 Subject: [PATCH] #61 Making sure type parameters are correctly specified when instantiating collection types --- .../main/resources/org.mapstruct.ap.model.PropertyMapping.ftl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processor/src/main/resources/org.mapstruct.ap.model.PropertyMapping.ftl b/processor/src/main/resources/org.mapstruct.ap.model.PropertyMapping.ftl index 05d97439c..0424237ef 100644 --- a/processor/src/main/resources/org.mapstruct.ap.model.PropertyMapping.ftl +++ b/processor/src/main/resources/org.mapstruct.ap.model.PropertyMapping.ftl @@ -34,7 +34,7 @@ <#else> <#if targetType.implementationType??> if ( ${sourceBeanName}.${sourceAccessorName}() != null ) { - ${ext.targetBeanName}.${targetAccessorName}( new <#if targetType.implementationType??>${targetType.implementationType.name}<#else>${targetType.name}<#if targetType.elementType??><${targetType.elementType.name}>( ${sourceBeanName}.${sourceAccessorName}() ) ); + ${ext.targetBeanName}.${targetAccessorName}( new <#if targetType.implementationType??><@includeModel object=targetType.implementationType/><#else><@includeModel object=targetType/>( ${sourceBeanName}.${sourceAccessorName}() ) ); } <#else> ${ext.targetBeanName}.${targetAccessorName}( ${sourceBeanName}.${sourceAccessorName}() );