404-not-find / orika

Automatically exported from code.google.com/p/orika
2 stars 0 forks source link

Wrong logged message when a destination property is not assignable #110

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
In MapGenerator.java, the message logged when a destination property is not 
assignable seems to be incorrect. 

It is : 
logDetails.append(destination.type() + "." + fieldMap.getSource().getName() + 
"(" + fieldMap.getSource().getType() + ") is neither assignable nor an array, 
collection, or map");

And should be
logDetails.append(destination.type() + "." + 
fieldMap.getDestination().getName() + "(" + fieldMap.getDestination().getType() 
+ ")is neither assignable nor an array, collection, or map");

Original issue reported on code.google.com by acourou...@gmail.com on 21 Jun 2013 at 3:00

GoogleCodeExporter commented 8 years ago
In the current version on GitHub 
(https://github.com/orika-mapper/orika/blob/master/core/src/main/java/ma/glasnos
t/orika/impl/generator/MapperGenerator.java#L242):

logDetails.append(destination.type() + "." + 
fieldMap.getDestination().getName() + "(" + fieldMap.getDestination().getType() 
+ ") is neither assignable nor an array, collection, or map");

So I think it has been fixed. Can you please tell which verison did you observe 
the issue.

Many thanks

Original comment by elaat...@gmail.com on 21 Jun 2013 at 3:20

GoogleCodeExporter commented 8 years ago

Original comment by matt.deb...@gmail.com on 7 Jul 2013 at 10:30