Skip to content

Enable serialization of final fields#2

Merged
JoniSt merged 1 commit intomasterfrom
allow-final-fields
Aug 23, 2016
Merged

Enable serialization of final fields#2
JoniSt merged 1 commit intomasterfrom
allow-final-fields

Conversation

@JoniSt
Copy link
Copy Markdown
Owner

@JoniSt JoniSt commented Aug 23, 2016

Turns out final fields are writeable via reflection, and doing so will
cause no harm since a final field is only inlined when it is a
compile-time constant, and compile-time constants don't change anyway
when serializing/deserializing.

Turns out final fields are writeable via reflection, and doing so will
cause no harm since a final field is only inlined when it is a
compile-time constant, and compile-time constants don't change anyway
when serializing/deserializing.
@JoniSt JoniSt merged commit ade661a into master Aug 23, 2016
@JoniSt JoniSt deleted the allow-final-fields branch August 23, 2016 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant