Skip to content

Commit 9377f88

Browse files
committed
Merge branch '3.1' into 3.x
2 parents 2242827 + 12a1d18 commit 9377f88

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

afterburner/src/main/java/tools/jackson/module/afterburner/deser/ABDeserializerModifier.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public BeanDeserializerBuilder updateBuilder(DeserializationConfig config,
4646
// [module-afterburner#21]: Can't force access to sealed packages, or anything within "java."
4747
if (!MyClassLoader.canAddClassInPackageOf(beanClass)) {
4848
return builder;
49-
}
49+
}
5050
/* Hmmh. Can we access stuff from private classes?
5151
* Possibly, if we can use parent class loader.
5252
* (should probably skip all non-public?)

afterburner/src/main/java/tools/jackson/module/afterburner/deser/SuperSonicBeanDeserializer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,8 @@ public Object deserializeFromObject(JsonParser p, DeserializationContext ctxt)
332332
}
333333
// also, need to ensure we get closing END_OBJECT...
334334
if (p.nextToken() != JsonToken.END_OBJECT) {
335-
return _handleUnexpectedWithin(p, ctxt, bean);
335+
// [modules-base#343]: trailing (possibly unknown) properties remain
336+
return _deserializeDisordered(p, ctxt, bean);
336337
}
337338
return bean;
338339
}

release-notes/VERSION

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@ Active maintainers:
3535

3636
No changes since 3.1.0
3737

38+
3.1.3 (not yet released)
39+
40+
#343: Deserialization Failed when an unknown property is added in JSON
41+
when using Afterburner Module
42+
(reported by @leowongkh)
43+
(fix by @cowtowncoder, w/ Claude code)
44+
3845
3.1.2 (11-Apr-2026)
3946
3.1.1 (27-Mar-2026)
4047

0 commit comments

Comments
 (0)