Hi Gunnar, check my testcases. Just uncomment en run.

Verstuurd vanaf mijn iPhone

> Op 6 feb. 2014 om 20:53 heeft Gunnar Morling <notifications@github.com> het volgende geschreven:
> 
> In processor/src/main/java/org/mapstruct/ap/processor/MapperCreationProcessor.java:
> 
> > @@ -170,7 +169,8 @@ private ReportingPolicy getEffectiveUnmappedTargetPolicy(TypeElement element) {
> >                  continue;
> >              }
> >  
> > -            reportErrorIfNoImplementationTypeIsRegisteredForInterfaceReturnType( method );
> > +           // TODO: Either find a good check for this or remove?
> > +           // reportErrorIfNoImplementationTypeIsRegisteredForInterfaceReturnType( method );
> Yes, we still need this. This is to raise an error in the case a method declares an interface as return type (say List) but no implementation type (e.g. HashMap) is registered. In this case we don't know which type to use when instantiating the return value.
> 
> In which case is this a problem? We only should get here if the method in question requires an implementation to be generated, but this shouldn' be the case for factory methods?
> 
> —
> Reply to this email directly or view it on GitHub.