Skip to content

Commit 7364c6a

Browse files
committed
Merge branch '2.19' into 3.x
2 parents d693b45 + a826991 commit 7364c6a

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

release-notes/VERSION-2.x

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Project: jackson-databind
1818
server and client side
1919
(requested by @qianlong)
2020
(contributed by Geoffrey G)
21+
#3343: Allow BeanPropertyWriter Sub-classes to Override `get()` (remove `final`)
22+
(requested by @alzimmermsft)
2123
#4388: Allow using `@JsonPropertyOrder` with "any" (`@JsonAnyGetter`) properties
2224
(fix by Joo-Hyuk K)
2325
#4650: `PrimitiveArrayDeserializers` should deal with single String value if

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -797,12 +797,8 @@ protected ValueSerializer<Object> _findAndAddDynamic(PropertySerializerMap map,
797797
/**
798798
* Method that can be used to access value of the property this Object
799799
* describes, from given bean instance.
800-
* <p>
801-
* Note: method is final as it should not need to be overridden -- rather,
802-
* calling method(s) ({@link #serializeAsProperty}) should be overridden to
803-
* change the behavior
804800
*/
805-
public final Object get(Object bean) throws Exception {
801+
public Object get(Object bean) throws Exception {
806802
return (_accessorMethod == null) ? _field.get(bean) : _accessorMethod
807803
.invoke(bean, (Object[]) null);
808804
}

0 commit comments

Comments
 (0)