Skip to content

Case file 44 · First-hand account

A web-based Java SaaS: Java 7 to 11, refactored in place

A 20-year-old Java product earned 80% of a higher education software company's revenue, and its Java version was losing support. Engineering estimated six months, the business approved two, and one team, with new features frozen, did it in a little over three.

Slide: a 20-year-old Java 7 product that ran in one browser, an arrow labeled refactor in place, and the same code on Java 11 working in every browser. Estimated 6 months, promised 2, took just over 3.

This case is mine. I was head of engineering at a B2B SaaS company in higher education, about 300 people, in 2020, and I mainly oversaw its Java products. I am not naming the company or the product. Here it is simply the web-based Java SaaS product. Earlier that year the same company rewrote the product's calling component; that story is its own case file.

Gen 1

The product brought in 80% of the company's revenue. Its renewals paid for the company's growth and its acquisitions. Our customers were colleges and universities.

It was 20 years old when I inherited it. It ran on Java 7, and Java had only ever been upgraded when an end of life forced it. The interface was hand-written CSS that only worked in Internet Explorer 11, with Bootstrap dropped into a few random places. It was a large application: 60% of it was administration, and the other 40% was used by people who spent their entire work shift in it.

Who could change it safely:

  • One architect, the subject matter expert, who had supported the product for eight years before I arrived.
  • A few engineers with two to three years on it.
  • Six more engineers who knew Java but not the product or the domain.
  • No QA.

Two things were wrong, and both hurt the business, not just the engineers:

  • Java 7 was losing support. Oracle was ending it, and the company did not want to pay for extended support. The only way out was a newer version of Java.
  • One browser. Internet Explorer 11 was the only browser the product supported. On August 17, 2020, Microsoft announced that its own Microsoft 365 apps and services would stop supporting IE11 a year later, on August 17, 2021. For a product that ran only in IE11, that was a deadline.

The decision

For 18 months engineering raised the red flag that Java's end of support was coming. Product management turned over several times in that period, and the warning was either not heard or not listened to. What finally won was one sentence to a new product manager:

"If we ship with an unsupported version of Java and there is a security CVE, Oracle won't fix it. We will be live with a product with known security issues."

We were planning the Java 11 upgrade, and had almost started, when Microsoft made its Internet Explorer 11 announcement. That changed our priorities. Now we had to do both: Java 11 and an interface that worked in every browser. The work started in August 2020.

The options on the table:

  • Do nothing: end-of-life the product and stop investing in it. Turned down: it brought in too much revenue month over month to retire.
  • Rewrite the application. Turned down quickly because of the cost.
  • Drop the Internet Explorer 11 limit and leave Java alone. That would have made sales and marketing happy and done nothing about the security problem.
  • Refactor in place: upgrade to Java 11 and move the whole interface to Bootstrap 4.5. This is the one that won.

What was promised:

  • Scope: Java 11, a version with many more years of support, and the whole application on Bootstrap 4.5.
  • Date: our estimate was six months, and we were told that was too long. My leads and I went back over the scope several times until we produced an estimate of two months, which the business approved. It was not a realistic estimate.
  • Team: eight engineers, dedicated to the upgrade for two months. No QA.
  • Gen 1: frozen. No new features, only the refactoring needed for the Java upgrade and the move to Bootstrap.

What happened

The spike. The architect's spike found libraries that did not support the newer Java. We had to find replacement third-party libraries, open source ones. From the spike, I worked with the leads on a resource plan: who would do what, and when, based on each person's skills.

Two tracks. We brought people onto the refactor one piece of work at a time. Several worked on moving the interface to Bootstrap. The rest worked on the Java upgrade and the fallout from the version change.

The first win. A demo on a local machine showed a handful of screens running in Chrome and Firefox. For the UI team it was a big motivator.

The Java side spiraled. Every stone an engineer turned over revealed another upgrade, to a tool nobody knew about or one the spike had missed.

The UI side went surprisingly well: fast and functional. But we had no automated UI tests, nothing to fall back on. Every check was manual and time-consuming, and there was no QA to share it.

The business carried on. Several trade shows happened, and sales and product sold as if nothing was going on. Customers had no idea the product was close to hitting a Java version wall. I made mockups of the cross-browser screens for the trade shows, to demo what was coming.

Planned against actual. The business wanted the release in two months, and it was a release that added nothing for customers: no new features, no problems solved, no big visible change. For engineering it was a huge milestone. It took a little over three months, and the whole team was busy the whole time. No features were added along the way. It was all hands on deck, and everyone was on board.

Cutover. Big bang: the old version one day, the new version the next. There was no rollback. We had some DevOps problems with memory and with far too much logging, but overall it was a success.

Today. Gen 1 became Gen 2: the same original core code, running newer Java and Bootstrap. I am still in touch with my team leads, and the product is still running.

What made it work

The spike. It took the risk down before the plan was set. We started with a thorough plan: what had to change, what it touched, and the risky areas to test.

One team, one code base, new features frozen. I had done this before, and I knew what does not work: a small team spun off to the side does the upgrade while a larger team keeps doing feature work for customers, and then the upgrade is merged back into the main repository. Two teams, two focuses, major merge conflicts, and it is never clean. This time Gen 1 got no new features, so there was no second line of work to merge. GitHub's Rails upgrade avoided the long-running branch too, in a different way.

Keeping the team going. No engineer wants to spend months upgrading Java or adding a CSS framework. Engineers want to work on the problems customers have and solve them in new ways. The business had handed them what felt like busy work, and my job was to keep morale and motivation high:

  • I celebrated every win, big or small.
  • I ran many engineering-only demos, so engineers could show off what they had done.
  • I encouraged pairing on the hard problems.
  • The team was working hard, so I gave them half-day Fridays, to spend with family or to clear their heads.

The same code on both sides of the cutover. Because Gen 2 was Gen 1 on a newer platform, switching over was one release, not a migration. The problems that showed up afterward were operational, memory and logging, and no rollback was needed.

What went wrong

Two problems in one project. Microsoft's announcement put the move to Bootstrap into the same effort as the Java upgrade. Looking back, we should have solved the first problem, Java's end of support, on its own. Full cross-browser support was a feature, unrelated to the Java upgrade, and Microsoft's date was still a year away, so it could have come right after.

The estimate was talked down. Six months was reviewed down to two until the business would accept it. It took a little over three: half our own estimate, and half again over the promise.

The spike did not find everything. Tools and dependencies nobody knew about kept turning up on the Java side, one after another.

No tests to lean on. With no automated UI tests and no QA, every screen the UI team changed had to be checked by hand, and that time came out of the same schedule.

The moment I remember

The product management role over this suite of applications kept turning over. I was on my second product manager when I told her, "We need to upgrade Java. We are on an old version that's not going to be supported anymore." She was proving herself at the company. Her focus was adding value through features in the old platform, not spending time releasing what she called "nothing".

When the third and final product manager started, I told him the same story, worded more strongly, and it worked. I had product's buy-in, sort of. Looking back, product presented the cross-browser enhancement as the project and folded the Java upgrade into it, where nobody saw it or knew about it.

What I would do differently

  • Press the urgency harder, and sooner. I would have stressed the Java end of support more to the earlier product managers. The wording is everything.
  • Do only the Java upgrade first, then add Bootstrap as a fast-follow epic.

What to take from it

  • Speak up about end-of-life technology, however big it is (Java, .NET and the like). Product managers are not going to recommend an end-of-life upgrade. It is on engineering leadership to say it.
  • Estimates for large refactors are always too low. Engineering leaders try to make the business happy, but at what cost? Morale and burnout. There are always unknowns that throw a wrench into the plan. Stick to your estimates and do not bend to product or business pressure. More in estimating a rewrite.
  • Upgrade to a version with a long runway, unless you want to do this again in a year. Pick the release that buys you several years before the next one.

Source

First-hand account. Written by RJ Lindelof from his own experience. He was head of engineering and led the team that did the work. The company and its product are not named. The Internet Explorer 11 dates are from Microsoft's announcement, linked on the page.

Last updated November 30, 2026.