---
spec: JLS
title: "The Java Language Specification"
edition: "Java SE 24 Edition"
java_version: 24
chapter: "Chapter 13. Binary Compatibility"
section: "13.4.27"
heading: "13.4.27. Evolution of Record Classes"
parent: "13.4. Evolution of Classes"
source: https://docs.oracle.com/javase/specs/jls/se24/html/jls-13.html#jls-13.4.27
id: "13.4.27"
url: https://jvm.obfuscated.software/jls/se24/13.4.27.html
raw: https://jvm.obfuscated.software/jls/se24/13.4.27.md
---

# 13.4.27. Evolution of Record Classes

Adding, deleting, changing, or reordering record components in a record class may break compatibility with pre-existing binaries that are not recompiled; such a change is not recommended for widely distributed record classes.

More precisely, adding, deleting, changing, or reordering record components may change the corresponding implicit declarations of component fields and accessor methods, as well as changing the signature and implementation of the canonical constructor and other supporting methods, with consequences specified in [§13.4.8](13.4.8.md) and [§13.4.12](13.4.12.md).

In all other respects, the binary compatibility rules for record classes are identical to those for normal classes.
