Skip to content

Commit 1459693

Browse files
committed
speculative fix
1 parent ea64970 commit 1459693

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/tools/jackson/databind/ser/BasicSerializerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ protected final ValueSerializer<?> findSerializerByPrimaryType(SerializationCont
313313

314314
if (type.isTypeOrSubTypeOf(Number.class)) {
315315
JsonFormat.Value format = _calculateEffectiveFormat(ctxt,
316-
beanDescRef, Number.class, formatOverrides);
316+
beanDescRef, type.getRawClass(), formatOverrides);
317317

318318
// 21-May-2014, tatu: Couple of alternatives actually
319319
switch (format.getShape()) {

0 commit comments

Comments
 (0)