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

Commit 2c2e0eb

Browse files
author
Steven Schlansker
committed
This is probably not the right fix, but it is a workaround for now...
1 parent d94738f commit 2c2e0eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ public JavaType resolveAbstractType(DeserializationConfig config, JavaType type)
180180
/* We won't be handling any container types (Collections, Maps and arrays),
181181
* Throwables or enums.
182182
*/
183-
if (type.isContainerType() || type.isPrimitive() || type.isEnumType() || type.isThrowable()) {
183+
if (type.isContainerType() || type.isPrimitive() || type.isEnumType() || type.isThrowable() ||
184+
type.getRawClass() == Number.class)
185+
{
184186
return null;
185187
}
186188
Class<?> cls = type.getRawClass();

0 commit comments

Comments
 (0)