Skip to content

JICMP-27: Compile with OpenJDK 17#7

Open
indigo423 wants to merge 9 commits intomasterfrom
ronny/JICMP-27
Open

JICMP-27: Compile with OpenJDK 17#7
indigo423 wants to merge 9 commits intomasterfrom
ronny/JICMP-27

Conversation

@indigo423
Copy link
Member

@indigo423 indigo423 commented Jan 28, 2026

Migrate javah to javac -h to compile with modern JDK. The javah tool to generate native-headers is removed in OpenJDK 10+ and replaced with javac -h. See JEP 313.

JIRA: https://opennms.atlassian.net/browse/JICMP-27

@indigo423 indigo423 changed the title refactor: Compile with OpenJDK 17 JICMP-27: Compile with OpenJDK 17 Jan 28, 2026
@indigo423 indigo423 force-pushed the ronny/JICMP-27 branch 3 times, most recently from 8684033 to abdfb07 Compare January 28, 2026 17:10
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the JICMP build configuration to compile with OpenJDK 17, replacing the deprecated javah tool with the modern javac -h approach introduced in JEP 313.

Changes:

  • Migrated from javah to javac -h for native header generation
  • Updated minimum Java version from 1.8 to 17 across build files and documentation
  • Updated Maven plugin versions and CI/CD configurations to support Java 17

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
pom.xml.in Updated Maven plugins, changed from source/target to release flag, updated execution environment to JavaSE-17
m4 Updated submodule commit reference
docs-src/modules/installation/pages/source.adoc Updated documentation to specify Java JDK 17 requirement
configure.ac Updated JDK check to version 17, removed JAVAH variable reference
README.adoc Updated Java JDK requirement to version 17
Makefile.am Replaced javah with javac -h flag, updated javac compilation flags
.circleci/config.yml Updated CI environment images and JDK versions to OpenJDK 17, updated Debian version to bookworm

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@indigo423 indigo423 force-pushed the ronny/JICMP-27 branch 5 times, most recently from 9aedfcf to c247125 Compare January 29, 2026 14:18
Migrate javah to javac -h to compile with modern JDK. The javah tool to
generate native-headers is removed in OpenJDK 10+ and replaced with
javac -h. See JEP 313.

Signed-off-by: Ronny Trommer <ronny@no42.org>
Signed-off-by: Ronny Trommer <ronny@no42.org>
Signed-off-by: Ronny Trommer <ronny@no42.org>
Signed-off-by: Ronny Trommer <ronny@no42.org>
Signed-off-by: Ronny Trommer <ronny@no42.org>
Signed-off-by: Ronny Trommer <ronny@no42.org>
Signed-off-by: Ronny Trommer <ronny@no42.org>
Signed-off-by: Ronny Trommer <ronny@no42.org>
Signed-off-by: Ronny Trommer <ronny@no42.org>
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.

1 participant