Skip to content

Commit fd6854c

Browse files
committed
Fix #1835 (add work-around for 2.9.x)
1 parent 8141aaf commit fd6854c

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

release-notes/VERSION

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Project: jackson-databind
1515
(reported by lexas2509@github)
1616
#1823: ClassNameIdResolver doesn't handle resolve Collections$SingletonMap & Collections$SingletonSet
1717
(reported by Peter J)
18+
#1835: ValueInjector break from 2.8.x to 2.9.x
19+
(repoted by kinigitbyday@github)
1820
#1842: `null` String for `Exception`s deserialized as String "null" instead of `null`
1921
(reported by ZeleniJure@github)
2022
#1843: Include name of unsettable property in exception from `SetterlessProperty.set()`

src/main/java/com/fasterxml/jackson/databind/deser/impl/ValueInjector.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,17 @@ public ValueInjector(PropertyName propName, JavaType type,
2828
_valueId = valueId;
2929
}
3030

31+
/**
32+
* @deprecated in 2.9 (remove from 3.0)
33+
*/
34+
@Deprecated // see [databind#1835]
35+
public ValueInjector(PropertyName propName, JavaType type,
36+
com.fasterxml.jackson.databind.util.Annotations contextAnnotations, // removed from later versions
37+
AnnotatedMember mutator, Object valueId)
38+
{
39+
this(propName, type, mutator, valueId);
40+
}
41+
3142
public Object findValue(DeserializationContext context, Object beanInstance)
3243
throws JsonMappingException
3344
{

0 commit comments

Comments
 (0)