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

This commit is contained in:
Rob Bygrave
2016-10-31 20:15:23 +13:00
parent d44460e180
commit ea5e9fa75a
@@ -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) {