#842 - For @DbJson map the type Map<String, ?> (using the wildcard) ... the same as Map<String, Object>

This commit is contained in:
Rob Bygrave committed 2016-10-31 20:15:23 +13:00
1 parent d44460e180
commit ea5e9fa75a
1 file changed
+1 -1
@@ -484,7 +484,7 @@ public final class DefaultTypeManager implements TypeManager, KnownImmutable {
*/
private boolean isMapValueTypeObject(Type genericType) {
Type[] typeArgs = ((ParameterizedType) genericType).getActualTypeArguments();
return Object.class.equals(typeArgs[1]);
return Object.class.equals(typeArgs[1]) || "?".equals(typeArgs[1].toString());
}
private ScalarType<?> createJsonObjectMapperType(Class<?> type, Type genericType, int dbType, DocPropertyType docType) {