Trust final fields in records

Johannes Kuhn info at
Fri Jun 12 11:35:18 UTC 2020

Jackson will break. It loves to call setAccessible on everything - even 
when explicitly disabled [1].

The other thing to consider is if setAccessible should fail, or if it 
should still allow read access, similar to static final fields.

- Johannes


On 12-Jun-20 12:57, Brian Goetz wrote:
> If the fields cannot be made accessible, this means that 3rd party serialization frameworks will choke on records, right?
> Sent from my iPad
>> On Jun 12, 2020, at 5:10 AM, Chris Hegarty <chris.hegarty at> wrote:
>>> On 12 Jun 2020, at 02:52, Mandy Chung <mandy.chung at> wrote:
>>> Hi Christoph,
>>> I can sponsor your patch.  I create
>> This is great. I remember thinking (saying?) similar when we settled on record serialization not needing to muck around with field stuffing (among the motivating factors for how records deserialize). This is a great step forward, nice to see it progressing.
>> -Chris.

More information about the valhalla-dev mailing list