~/talk

When Records Meet Serialization A Happy Tale

Talkat Devnexus 2021 · 2021-02-17..02-18· [java, security]
links:none on file
links:none on file
slides:none on file

Records in JDK 16 change serialization by making the serialized form derive only from declared record components and by reconstructing objects via the canonical constructor called last, not by bypassing constructors. The implementation stops reflection backdoors (no setAccessible hacks), reads values bottom-up, drops unknown fields, and throws on invariant failures (example: null or negative height causes NPE during deserialization). Result: same byte-stream shape for migration, stronger security, and no window where an impossible object exists.

AI-written summary · about

  1. 0:00Introduction
  2. 1:47Java serialization flaws
  3. 12:21What are records
  4. 23:57Records and serialization
  5. 30:02Summary and benefits
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.