Carrier Classes; Beyond Records - Inside Java Newscast #105 @java
Carrier Classes; Beyond Records - Inside Java Newscast #105  @java
Uploaded January 2026 | Updated November 2026, 1 week ago
This episode presents Project Amber lead Brian Goetz's recent email "Data Oriented Programming, Beyond Records", wherein he describes plans to improve Java's data handling capabilities by introducing *carrier classes*, a generalization of records. Like them, carrier classes describe their state through a component list that defines the type's external API: accessors, a constructor, and matching deconstructor - this allows carrier classes to participate in pattern matching and reconstruction. Unlike records, the implementation of this API remains the developer's task although component fields offer a shortcut for the common case where the API does map to a field. Carrier classes don't have to be final (and can hence participate in inheritance) and neither do their fields (so they can be mutable data carriers).

The email also mentions carrier interfaces, allowing records to be abstract as well as a relaxation of deconstruction patterns that make them more amenable to evolution of the matched type. This episode also briefly touches on Gavin Bierman's mail to the Project Amber mailing list that announces pattern assignments and constant patterns.

Come to *JavaOne 2026* in Redwood City, March 17th-19th, and get *100$ off with code J12026YTLFV* : oracle.com/javaone

~~~~~ Links ~~~~~

Brian Goetz' email "Data Oriented Programming, Beyond Records":
mail.openjdk.org/pipermail/amber-spec-experts/2026-January/004307.html

Gavin Bierman's email "Amber features 2026":
mail.openjdk.org/pipermail/amber-spec-experts/2026-January/004306.html

Project Amber: openjdk.org/projects/amber

~~~~~ Chapters ~~~~~

0:00 Intro
1:05 Carrier Classes
1:31 Carrier Classes - Record Review
2:17 Carrier Classes - Semantics
3:34 Carrier Classes - API Commitment
5:00 Carrier Classes - Representation
6:23 Carrier Classes - Beyond Records
7:15 Hug Duke 🤗
7:49 More Amber Goodies

Tags: #Java #OpenJDK #Amber #Data
Carrier Classes; Beyond Records - Inside Java Newscast #105What is the difference between an Executor Service and a Fork / Join pool? #javalanguage #javatipsWhat is mapMulti()? - Cracking the Java Coding Interview #java #javacoding #javatipsHow can you get the bytes of a String?  - Cracking the Java Coding Interview #javacoding #javatipsHow can you replace all the elements of a list? - Cracking the Java Coding Interview #javacodingHow should you check if a value is null? - Cracking the Java Coding Interview #javacoding #javatipsAgent Helidon: License to Scale#JavaNext Language FeaturesJava - The Year of the Runtime!What is #Code Java Reflection? #CodingJavas Progress in 2025 - Inside Java Newscast #103Java and WebAssembly
Java |

Carrier Classes; Beyond Records - Inside Java Newscast #105

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER