---
title: "com.sun.xml.bind:jaxb-core 4.0.0 Breaking Changes"
description: "What each com.sun.xml.bind:jaxb-core release removed, renamed or changed: 25 breaking changes in 2 versions on Maven Central, each with its source."
canonical_url: https://since.dev/packages/maven/com.sun.xml.bind:jaxb-core
last_updated: 2026-12-04
---

# com.sun.xml.bind:jaxb-core breaking changes

com.sun.xml.bind:jaxb-core 4.0.0 (May 19, 2022) is its newest release with breaking changes, 24 of them. The first: Removed org.glassfish.jaxb.core.marshaller.Messages.\<init>. Every breaking API change we have recorded in com.sun.xml.bind:jaxb-core on Maven Central: 25 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.0.9`, released May 28, 2026. [Source repository](https://github.com/eclipse-ee4j/jaxb-ri)

Packages on Maven Central run on Java. [Java end of life dates](https://since.dev/calendar/eclipse-temurin.md).

- From [3.0.2-RI](#v-3-0-2-RI) to [4.0.0](#v-4-0-0): 24 breaking changes in 1 version.

## com.sun.xml.bind:jaxb-core 4.0.0 breaking changes

com.sun.xml.bind:jaxb-core 4.0.0, released May 19, 2022: 24 breaking changes.

- **Removed** `org.glassfish.jaxb.core.marshaller.Messages.<init>`  

Messages.\<init> was removed in com.sun.xml.bind:jaxb-core 4.0.0 [central.sonatype.com](https://central.sonatype.com/artifact/com.sun.xml.bind/jaxb-core/4.0.0)
- **Removed** `org.glassfish.jaxb.core.util.Which.<init>`  

Which.\<init> was removed in com.sun.xml.bind:jaxb-core 4.0.0 [central.sonatype.com](https://central.sonatype.com/artifact/com.sun.xml.bind/jaxb-core/4.0.0)
- **Removed** `org.glassfish.jaxb.core.v2.ClassFactory.<init>`  

ClassFactory.\<init> was removed in com.sun.xml.bind:jaxb-core 4.0.0 [central.sonatype.com](https://central.sonatype.com/artifact/com.sun.xml.bind/jaxb-core/4.0.0)
- **Removed** `org.glassfish.jaxb.core.v2.runtime.RuntimeUtil.<init>`  

RuntimeUtil.\<init> was removed in com.sun.xml.bind:jaxb-core 4.0.0 [central.sonatype.com](https://central.sonatype.com/artifact/com.sun.xml.bind/jaxb-core/4.0.0)
- **Removed** `org.glassfish.jaxb.core.v2.util.XmlFactory.<init>`  

XmlFactory.\<init> was removed in com.sun.xml.bind:jaxb-core 4.0.0 [central.sonatype.com](https://central.sonatype.com/artifact/com.sun.xml.bind/jaxb-core/4.0.0)
- **Removed** `org.glassfish.jaxb.core.v2.util.XmlFactory.ACCESS_EXTERNAL_DTD`  

org.glassfish.jaxb.core.v2.util.XmlFactory.ACCESS_EXTERNAL_DTD was removed in com.sun.xml.bind:jaxb-core 4.0.0 [central.sonatype.com](https://central.sonatype.com/artifact/com.sun.xml.bind/jaxb-core/4.0.0)
- **Removed** `org.glassfish.jaxb.core.v2.util.XmlFactory.ACCESS_EXTERNAL_SCHEMA`  

org.glassfish.jaxb.core.v2.util.XmlFactory.ACCESS_EXTERNAL_SCHEMA was removed in com.sun.xml.bind:jaxb-core 4.0.0 [central.sonatype.com](https://central.sonatype.com/artifact/com.sun.xml.bind/jaxb-core/4.0.0)
- **Removed** `org.glassfish.jaxb.core.v2.WellKnownNamespace.XML_NAMESPACE_URI`  

org.glassfish.jaxb.core.v2.WellKnownNamespace.XML_NAMESPACE_URI was removed in com.sun.xml.bind:jaxb-core 4.0.0 [central.sonatype.com](https://central.sonatype.com/artifact/com.sun.xml.bind/jaxb-core/4.0.0)
- **Removed** `org.glassfish.jaxb.core.v2.WellKnownNamespace.XML_SCHEMA`  

org.glassfish.jaxb.core.v2.WellKnownNamespace.XML_SCHEMA was removed in com.sun.xml.bind:jaxb-core 4.0.0 [central.sonatype.com](https://central.sonatype.com/artifact/com.sun.xml.bind/jaxb-core/4.0.0)
- **Removed** `org.glassfish.jaxb.core.v2.WellKnownNamespace.XML_SCHEMA_INSTANCE`  

org.glassfish.jaxb.core.v2.WellKnownNamespace.XML_SCHEMA_INSTANCE was removed in com.sun.xml.bind:jaxb-core 4.0.0 [central.sonatype.com](https://central.sonatype.com/artifact/com.sun.xml.bind/jaxb-core/4.0.0)
- **Signature changed** `com.sun.istack.Pool.Impl.<init>`  

Was Impl(); now protected Impl(). [central.sonatype.com](https://central.sonatype.com/artifact/com.sun.xml.bind/jaxb-core/4.0.0)
- **Signature changed** `com.sun.xml.txw2.DatatypeWriter.BUILTIN`  

Was static final java.util.List\<com.sun.xml.txw2.DatatypeWriter\<?>> BUILTIN; now static final java.util.List\<com.sun.xml.txw2.DatatypeWriter\<Object>> BUILTIN. [central.sonatype.com](https://central.sonatype.com/artifact/com.sun.xml.bind/jaxb-core/4.0.0)
- **Signature changed** `com.sun.xml.txw2.Document.addDatatypeWriter`  

Was void addDatatypeWriter(com.sun.xml.txw2.DatatypeWriter\<?>); now void addDatatypeWriter(com.sun.xml.txw2.DatatypeWriter\<Object>). [central.sonatype.com](https://central.sonatype.com/artifact/com.sun.xml.bind/jaxb-core/4.0.0)
- **Signature changed** `org.glassfish.jaxb.core.unmarshaller.DOMScanner`  

Was class DOMScanner implements org.glassfish.jaxb.core.v2.runtime.unmarshaller.LocatorEx, org.glassfish.jaxb.core.unmarshaller.InfosetScanner; now class DOMScanner implements org.glassfish.jaxb.core.v2.runtime.unmarshaller.LocatorEx... [central.sonatype.com](https://central.sonatype.com/artifact/com.sun.xml.bind/jaxb-core/4.0.0)
- **Signature changed** `org.glassfish.jaxb.core.unmarshaller.DOMScanner.getCurrentElement`  

Was Object getCurrentElement(); now org.w3c.dom.Node getCurrentElement(). [central.sonatype.com](https://central.sonatype.com/artifact/com.sun.xml.bind/jaxb-core/4.0.0)
- **Signature changed** `org.glassfish.jaxb.core.unmarshaller.DOMScanner.scan`  

Was void scan(Object); now void scan(org.w3c.dom.Node). [central.sonatype.com](https://central.sonatype.com/artifact/com.sun.xml.bind/jaxb-core/4.0.0)
- **Signature changed** `org.glassfish.jaxb.core.util.Which.which`  

Was static String which(Class); now static String which(Class\<?>). [central.sonatype.com](https://central.sonatype.com/artifact/com.sun.xml.bind/jaxb-core/4.0.0)
- **Signature changed** `org.glassfish.jaxb.core.v2.model.core.EnumLeafInfo.getConstants`  

Was Iterable\<? extends org.glassfish.jaxb.core.v2.model.core.EnumConstant> getConstants(); now Iterable\<? extends org.glassfish.jaxb.core.v2.model.core.EnumConstant\<?, ?>> getConstants(). [central.sonatype.com](https://central.sonatype.com/artifact/com.sun.xml.bind/jaxb-core/4.0.0)
- **Signature changed** `org.glassfish.jaxb.core.v2.model.nav.Navigator.asDecl`  

Was C asDecl(Class); now C asDecl(Class\<?>). [central.sonatype.com](https://central.sonatype.com/artifact/com.sun.xml.bind/jaxb-core/4.0.0)
- **Signature changed** `org.glassfish.jaxb.core.v2.model.nav.Navigator.getPrimitive`  

Was T getPrimitive(Class); now T getPrimitive(Class\<?>). [central.sonatype.com](https://central.sonatype.com/artifact/com.sun.xml.bind/jaxb-core/4.0.0)
- **Signature changed** `org.glassfish.jaxb.core.v2.model.nav.Navigator.ref`  

Was T ref(Class); now T ref(Class\<?>). [central.sonatype.com](https://central.sonatype.com/artifact/com.sun.xml.bind/jaxb-core/4.0.0)
- **Signature changed** `org.glassfish.jaxb.core.v2.runtime.RuntimeUtil.boxToPrimitive`  

Was static final java.util.Map\<Class, Class> boxToPrimitive; now static final java.util.Map\<Class\<?>, Class\<?>> boxToPrimitive. [central.sonatype.com](https://central.sonatype.com/artifact/com.sun.xml.bind/jaxb-core/4.0.0)
- **Signature changed** `org.glassfish.jaxb.core.v2.runtime.RuntimeUtil.primitiveToBox`  

Was static final java.util.Map\<Class, Class> primitiveToBox; now static final java.util.Map\<Class\<?>, Class\<?>> primitiveToBox. [central.sonatype.com](https://central.sonatype.com/artifact/com.sun.xml.bind/jaxb-core/4.0.0)
- **Signature changed** `org.glassfish.jaxb.core.WhiteSpaceProcessor.<init>`  

Was WhiteSpaceProcessor(); now protected WhiteSpaceProcessor(). [central.sonatype.com](https://central.sonatype.com/artifact/com.sun.xml.bind/jaxb-core/4.0.0)

## com.sun.xml.bind:jaxb-core 3.0.2-RI breaking changes

com.sun.xml.bind:jaxb-core 3.0.2-RI, released May 19, 2022: 1 breaking change.

- **Removed**  

Java APIs that were deprecated in earlier releases have been removed, so code that calls them will no longer compile or run. Check your code for uses of deprecated JAXB APIs and move to their replacements. [github.com](https://github.com/eclipse-ee4j/jaxb-ri/releases/tag/3.0.2-RI)

## Related packages

- [org.glassfish.jaxb:jaxb-runtime](https://since.dev/packages/maven/org.glassfish.jaxb:jaxb-runtime.md)
- [com.sun.xml.bind:jaxb-impl](https://since.dev/packages/maven/com.sun.xml.bind:jaxb-impl.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
