~/talk

Java Project Amber - Not Just a Rare Fossil

Talkat Devnexus 2022 · 2022-04-12..04-14· [java]
slides:none on file

Project Amber’s changes are demonstrated live in IntelliJ against Java 18, with runnable GitHub examples. It shows local variable type inference (var) caveats, arrow and yield switch expressions (JEP 325/354/361) that print quarter and parity results, text blocks (final in Java 15) preserving indentation, pattern matching for instanceof producing flow-scoped bindings, immutable records with compact constructors that validate and can throw on creation, sealed classes controlling subtypes, and record/switch pattern features currently in preview or on hold.

AI-written summary · about

  1. 0:00Introduction to Project Amber
  2. 1:13Meaning behind Project Amber
  3. 3:41Local variable type inference
  4. 6:33Switch expressions in Java
  5. 10:04Text blocks in Java
  6. 18:43Pattern matching for instance of
  7. 26:01Java records explained
  8. 37:14Sealed classes and hierarchies
  9. 44:58Record patterns and deconstruction
  10. 48:48Pattern matching in switch
  11. 54:06Lambda leftovers and updates
  12. 58:18Java compiler intrinsics
  13. 1:00:22Future features and summary
~/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.