A comment on this question by user Abdul Aziz Barkat links to a Meta Stack Exchange post (How to find and/or change a set of hyperlinks on a site?) explaining that an internal tool does exist to bulk rewrite links:
There exists, internally, a search-and-replace tool for rewriting links. It's very simple; if someone changes their entire URL scheme, it's not much help. But for stuff like this, where we can simply cut out one consistent part of each URL and drop in another... It works pretty well.
If you need this - and I'd consider anything over 100 links a need - post a feature-request on the appropriate site meta and we'll try & get it done.
Since there are over 400 results with Java Bug Database URLs, that meets the stated threshold for whether there's a need.
As of 9 hours after asking this Stack Overflow Meta question, there are currently 16 upvotes and no downvotes. It's apparent that there's therefore community consensus that this bulk change should be done.
I've created a feature request to bulk update these URLs: Feature request: Rewrite Java Bug Database links.
Update: the bulk update was performed on 11/10/2023.