#729 Fix trying to resolving constructor on primitive types

This commit is contained in:
Oliver Ehrenmüller 2016-02-01 13:07:59 +01:00
parent 01322e0a9c
commit 39158f649f

View File

@ -543,6 +543,10 @@ public class MappingResolverImpl implements MappingResolver {
* otherwise.
*/
private boolean hasCompatibleCopyConstructor(Type sourceType, Type targetType) {
if ( targetType.isPrimitive() ) {
return false;
}
List<ExecutableElement> targetTypeConstructors = ElementFilter.constructorsIn(
targetType.getTypeElement().getEnclosedElements() );