[jOOQ/jOOQ#17537] Wrong error message with DataTypeException: "Cannot
cast [T] to [T]"
This commit is contained in:
parent
db10aed045
commit
716fbeb22f
@ -134,7 +134,7 @@ public final class DefaultConverterProvider implements ConverterProvider, Serial
|
||||
if (uWrapper.isInstance(t))
|
||||
return uWrapper.cast(t);
|
||||
else
|
||||
throw new DataTypeException("Cannot cast from " + tWrapper + " (instance type: " + t.getClass() + " to " + tWrapper);
|
||||
throw new DataTypeException("Cannot cast from " + tWrapper + " (instance type: " + t.getClass() + ") to " + uWrapper);
|
||||
},
|
||||
u -> tWrapper.cast(u)
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user