Skip to content
This repository was archived by the owner on Nov 7, 2019. It is now read-only.

Commit 37be12f

Browse files
committed
Merge #12 fix in 2.3 as well
1 parent da41d40 commit 37be12f

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

release-notes/VERSION

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
Project: jackson-module-mrbean
2-
Version: 2.3.2 (01-Mar-2014)
2+
Version: 2.3.3 (xx-xxx-2014)
33

4-
No functional changes.
4+
#12: Fix problem with `Number` as Map value (and probably other types too)
5+
(contributed by Steven S)
56

67
------------------------------------------------------------------------
78
=== History: ===
89
------------------------------------------------------------------------
910

11+
2.3.2 (01-Mar-2014)
1012
2.3.1 (28-Dec-2013)
1113
2.3.0 (14-Nov-2013)
1214

src/main/java/com/fasterxml/jackson/module/mrbean/AbstractTypeMaterializer.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,10 @@ public JavaType resolveAbstractType(DeserializationConfig config, JavaType type)
184184
return null;
185185
}
186186
Class<?> cls = type.getRawClass();
187+
// or, as per [#12], Number
188+
if (cls == Number.class) {
189+
return null;
190+
}
187191
/* [JACKSON-683] Fail on non-public classes, since we can't easily force
188192
* access to such classes (unless we tried to generate impl classes in that
189193
* package)

0 commit comments

Comments
 (0)