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

# 13.3. Evolution of Packages

A new top level class or interface type may be added to a package without breaking compatibility with pre-existing binaries, provided the new type does not reuse a name previously given to an unrelated type.

If a new type reuses a name previously given to an unrelated type, then a conflict may result, since binaries for both types could not be loaded by the same class loader.

Changes in top level class and interface types that are not `public` and that are not a superclass or superinterface, respectively, of a `public` type, affect only types within the package in which they are declared. Such types may be deleted or otherwise changed, even if incompatibilities are otherwise described here, provided that the affected binaries of that package are updated together.
