Quick revision
The short answer
The javax to jakarta change shows that even a standard that has been stable for twenty years can change for legal or governance reasons that have nothing to do with technology. We protect the organisation by keeping direct use of platform APIs in a few well defined places, following ecosystem news so we see changes years ahead, keeping the ability to upgrade cheaply through tests, automation and current versions, and choosing libraries with active maintenance and clear governance.
What to remember
In this answer, we saw that the javax to jakarta rename happened for legal and governance reasons, not technical ones, and that its cost depended on how far platform types had spread through each codebase. To protect an organisation, I would keep platform APIs at the edges, follow ecosystem news so changes are seen years ahead, keep upgrades cheap through tests, automation and current versions, and choose libraries with active maintenance and clear governance.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
The javax to jakarta change shows that even a standard that has been stable for twenty years can change for legal or governance reasons that have nothing to do with technology. We protect the organisation by keeping direct use of platform APIs in a few well defined places, following ecosystem news so we see changes years ahead, keeping the ability to upgrade cheaply through tests, automation and current versions, and choosing libraries with active maintenance and clear governance.
Why this question is asked
Senior leaders are expected to learn from industry events, not only from their own incidents. The javax to jakarta rename touched almost every Java codebase in the world, and it did not happen because anyone found a better design. It happened because of a trademark. Interviewers ask this question to hear whether we can turn that event into lasting practices for an organisation. In this answer, we will recap what actually happened and why, look at what it teaches about standards and vendors, and then go through the protections I would put in place, with the cost of each.
1What Actually Happened
For about twenty years, the enterprise Java specifications, Servlet, JPA, JMS, Bean Validation and others, lived in packages that started with javax. In 2017 Oracle moved Java EE to the Eclipse Foundation, where it became Jakarta EE. The specifications, the reference implementations and the processes moved, but Oracle kept the Java trademark, and the agreement did not let the new owners evolve APIs in the javax namespace. So in 2020 Jakarta EE 9 renamed every package from javax.* to jakarta.*, with no functional change at all.
The cost landed on everyone downstream. Application servers, Hibernate, Tomcat, Spring and thousands of libraries had to ship new major versions, and every application had to move in step. For Spring users this arrived with Boot 3 in late 2022, and many organisations spent most of 2023 and 2024 migrating.
2What It Teaches About Standards and Vendors
The first lesson is that stability is not the same as permanence. We had treated javax as bedrock, the most stable part of the stack, more stable than any framework. In fact a standard is owned by organisations, and organisations change hands, licences and priorities. Even stable standards can change for legal or governance reasons.
The second lesson is that the cost of a change depends mostly on how widely we spread the dependency. A codebase where javax.persistence appeared only in an infrastructure layer migrated in days. A codebase where servlet request objects were passed through service methods, and where entities with JPA annotations were used as API responses, needed changes in hundreds of files.
The third lesson is that the change was visible years in advance. The transfer was announced in 2017, the rename was decided in 2019 and released in 2020, and Spring announced its Jakarta baseline well before Boot 3. Organisations that followed this had time to prepare; those that did not were surprised.
3Protection 1: Keep Platform APIs in Limited Places
The cheapest protection is architectural. If our domain logic, the code that encodes business rules, does not import framework or platform types, then a change in those types touches only the edges. In practice this means controllers translate HTTP requests into our own command objects, repositories hide persistence details, and domain classes do not carry servlet or messaging types.
I would not go as far as wrapping every annotation, because that adds cost every day for a change that comes once a decade. JPA annotations on entities are fine; passing HttpServletRequest into a pricing service is not. The rule is to keep each platform API in the layer whose job is to talk to that platform.
- Web adaptersservlet, HTTP and JSON types live here
- Application servicesour own command and result objects
- Domain modelbusiness rules, no platform imports
- Persistence adaptersJPA, JDBC and driver types live here
- Messaging adaptersKafka or JMS types live here
5 layers, from the top down. Step through them one at a time.
A rename in a platform API then touches one outer layer, not the whole codebase.
4Protection 2: Watch the Ecosystem and Stay Able to Upgrade
I would give someone, usually the platform team or an architecture group, the explicit job of following ecosystem news: Jakarta EE and Java release plans, Spring's roadmap and support timelines, and the plans of our major vendors. A short quarterly note on what is coming and what it will cost us lets teams plan years ahead instead of reacting.
Seeing a change early only helps if we can act on it. That ability is a set of habits: good automated tests, so that an upgrade that breaks something is caught; automation such as Renovate and OpenRewrite, so that the mechanical changes are cheap; and current versions, so that each upgrade is a small step. A team that is on the latest Boot minor with a strong test suite can absorb a rename in a sprint. A team three years behind with few tests cannot absorb it at all without a project.
5Protection 3: Choose Dependencies With Their Governance in Mind
When we pick a library, we usually look at features and performance. The rename suggests adding questions about who owns it. Is it actively maintained, with recent releases? Is it governed by a foundation or a company with a public roadmap? Does it have more than one or two maintainers? How quickly did it adopt the last major platform change?
During the Jakarta move, libraries with active maintainers shipped Jakarta versions within months, while abandoned ones never did and became blockers. So I would keep an inventory of third party libraries, flag those with no release in two years or a single maintainer, and plan replacements before the next platform change, not during it.
The cost of all three protections is modest: some design discipline, a part time role watching the ecosystem, and a library review in the normal architecture process. Compared with the months many organisations spent on the Jakarta migration, it is a good trade.
6Follow-up questions
Should we wrap all framework APIs behind our own interfaces to be safe?
No. Wrapping everything adds code, hides useful features and costs effort every day. I would isolate platform types at the edges of the system, where it is cheap, and accept direct use of well governed frameworks such as Spring inside those edges. The goal is to limit the blast radius, not to remove every dependency.
How would you explain this risk to business leadership?
As a predictable maintenance cost. I would show what the last migration cost in team weeks, explain that platform changes of this kind happen every few years, and show that small steady investment in tests and upgrades keeps the next one to weeks instead of months.
Could something similar happen again?
Yes, for different reasons: licence changes, a vendor dropping a product, or a foundation changing a project's direction. Several popular infrastructure projects have changed their licences in recent years. The protections are the same: limited spread, early warning and the ability to upgrade or replace quickly.
7Conclusion
In this answer, we saw that the javax to jakarta rename happened for legal and governance reasons, not technical ones, and that its cost depended on how far platform types had spread through each codebase. To protect an organisation, I would keep platform APIs at the edges, follow ecosystem news so changes are seen years ahead, keep upgrades cheap through tests, automation and current versions, and choose libraries with active maintenance and clear governance.
Open with
The javax to jakarta rename taught me that even the most stable standard can change for reasons that have nothing to do with technology. Oracle kept the Java trademark when Java EE moved to Eclipse, so Jakarta EE 9 renamed every package with no functional change, and the whole ecosystem had to ship new majors.
Then, if they want more
Two things decided how much it hurt each organisation: how widely the platform types had spread through the code, and how able the teams were to upgrade. So I would protect against the next change in three ways.
First, architecture: platform APIs such as servlet, persistence and messaging types stay in the adapter layers, and domain logic uses our own types, without wrapping every annotation.
Second, early warning and upgrade capability: someone follows Jakarta, Java and Spring roadmaps and vendor plans and writes a short quarterly note, and teams keep good tests, use Renovate and OpenRewrite, and stay on current versions so each change is a small step.
Third, dependency choice: we prefer libraries with active maintenance, more than one maintainer and clear governance, and we track the ones that look abandoned so we replace them before they block us.
About this answer
- Last updated
- 12 November 2026
- Versions it names
- Jakarta EE 9
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- Spring Boot reference
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "The javax to jakarta change affected the whole Java ecosystem. What does it teach about...": https://scrivio-interview-library.netlify.app/spring-boot/boot-migrations/4687fadb27/