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

# 13.4.26. Evolution of Enum Classes

Adding or reordering enum constants in an enum class will not break compatibility with pre-existing binaries.

Deleting an enum constant from an enum class will delete the `public` field that corresponds to the enum constant ([§8.9.3](8.9.3.md)). The consequences are specified in [§13.4.8](13.4.8.md). Such a change is not recommended for widely distributed enum classes.

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