Skip to content

Upgrade Java 11 to Java 17#2400

Open
GG-Feng wants to merge 765 commits into
brettwooldridge:masterfrom
GG-Feng:openrewrite-upgrade-java17
Open

Upgrade Java 11 to Java 17#2400
GG-Feng wants to merge 765 commits into
brettwooldridge:masterfrom
GG-Feng:openrewrite-upgrade-java17

Conversation

@GG-Feng

@GG-Feng GG-Feng commented May 19, 2026

Copy link
Copy Markdown

Summary

This PR upgrades the project from Java 11 to Java 17, applying modern Java language features and updating the build configuration accordingly.

Changes

  • Updated source/target from 11 to 17
  • Applied instanceof pattern matching
  • Added @serial annotation to serialVersionUID fields
  • Converted String.format to .formatted
  • Replaced Paths.get with Path.of

Statistics

11 files changed, 36 insertions, 30 deletions

Verification

  • BUILD SUCCESS with JDK 17

jmewes and others added 30 commits May 9, 2020 18:12
brettwooldridge#1669)

* Fixed optional dependencies that were marked as required in module-info.java

* * Upgraded bundle plugin to fix https://issues.apache.org/jira/browse/FELIX-6259.
* Windows requires the use of ${file.separator} to separate classpath entries.

* Need to use a different log4j-slf4j-impl artifact under Java 11.
…s as 'static' (brettwooldridge#1587)

* brettwooldridge#1582: update module-info to mark optional dependencies as 'static'

* update to hibernate.core release 5.4.16.Final and use its module name

Co-authored-by: Brett Wooldridge <brett.wooldridge@gmail.com>
Co-authored-by: Caleb Larsen <caleb.larsen@rentping.com>
…icle. (brettwooldridge#1647)

So that it doesn't lead to a 404 and is the same behavior as the other images in the readme.
Co-authored-by: Iouri Goussev <igoussev@xmatters.com>
…ests" (brettwooldridge#1249)

Co-authored-by: Brett Wooldridge <brett.wooldridge@gmail.com>
The final modifier is overridden by public modifier before this commit
…mumPoolSize needs to be done before setCorePoolSize, the current implementation throws IllegalArgumentException and hence prefilling of connections by setting com.zaxxer.hikari.blockUntilFilled is broken. (brettwooldridge#1605)

Co-authored-by: rampr_000 <spachanady@gmail.com>
…twooldridge#1699)

* features: add heartbeat to keepalive connection if configure it

* features: add heartbeat to keepalive connection if configure it

* features: add heartbeat to keepalive connection if configure it

* features: keepalive unit test

* optimize code

* optimize code
…dridge#1692)

* Add support for multiple prometheus histogram metric trackers

* Add tests
brettwooldridge and others added 30 commits July 21, 2025 16:15
…n to previous Connection.get/setSchema behavior
…name()/getPassword() of HikariDataSource
- Apply instanceof pattern matching
- Add @serial annotation to serialVersionUID fields
- Convert String.format to .formatted
- Replace Paths.get with Path.of

Builds successfully with JDK 17.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.