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

# 13.4.26. Evolution of Enums

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

If a pre-existing binary attempts to access an enum constant that no longer exists, the client will fail at run time with a `NoSuchFieldError`. Therefore such a change is not recommended for widely distributed enums.

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