Skip to content

Conversation

mluckam
Copy link
Contributor

@mluckam mluckam commented Apr 17, 2024

The method BeanDeserializer.deserialize is not final. This allows for modification to the deserialization process generally via proxy or subclass, ex adding validation. The reverse is not allowed though as BeanSerializer.Serialize is final.

I propose removing final from the method to allow for these two inverse functions to be exposed equally. Idea originally discussed in #4482

…ty between this method and BeanDeserializer.deserialize allowing for proxies and subclassing to change serialization behavior
@cowtowncoder
Copy link
Member

Makes sense; happy to merge this.

But one (and only) process thing we need is CLA before the first contributions. It's this:

https://github.com/FasterXML/jackson/blob/master/contributor-agreement.pdf

and is usually easiest done by printing, filling & signing, scanning, emailing to cla at fasterxml dot com.
Only needed once and good for all future contributions.

As soon as I get it, will merge.

Thank you for the PR, looking forward to merging!

@cowtowncoder cowtowncoder added 2.18 Issues planned at 2.18 or later cla-needed PR looks good (although may also require code review), but CLA needed from submitter and removed cla-needed PR looks good (although may also require code review), but CLA needed from submitter labels Apr 18, 2024
@cowtowncoder
Copy link
Member

CLA recived, will merge.

@cowtowncoder cowtowncoder changed the title Remove final on method BeanSerializer.serialize Remove final on method BeanSerializer.serialize() Apr 19, 2024
@cowtowncoder cowtowncoder merged commit 22da1a7 into FasterXML:2.18 Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.18 Issues planned at 2.18 or later
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants