Skip to content

Commit 910edfb

Browse files
committed
Fix a regression (but one luckily not released) due to #2796 fix
1 parent fd097d4 commit 910edfb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/main/java/com/fasterxml/jackson/databind/introspect/TypeResolutionContext.java

+13
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,20 @@ public Basic(TypeFactory tf, TypeBindings b) {
2828

2929
@Override
3030
public JavaType resolveType(Type type) {
31+
// 15-Jun-2020, tatu: As a consequence of [databind#2796], need to
32+
// AVOID passing bindings for raw, type-erased cases, as otherwise
33+
// we seem to get odd "generic Long" cases (for Mr Bean module at least)
34+
if (type instanceof Class<?>) {
35+
return _typeFactory.constructType(type);
36+
}
3137
return _typeFactory.constructType(type, _bindings);
3238
}
39+
40+
/*// debugging
41+
@Override
42+
public String toString() {
43+
return "[TRC.Basic, bindings: "+_bindings+"]";
44+
}
45+
*/
3346
}
3447
}

0 commit comments

Comments
 (0)