Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ private Command generateCommandLine(Path nativeFolder) throws IOException {
}
}

if (is64bit && javaVersion == 25) {
if (is64bit && (javaVersion >= 25 && javaVersion <= 26)) {
Copy link

Copilot AI Jan 21, 2026

Choose a reason for hiding this comment

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

The condition javaVersion >= 25 && javaVersion <= 26 requires manual updates for each new Java version. Based on the JEP for Compact Object Headers, this feature is expected to remain available in future Java versions. Consider using javaVersion >= 25 instead to avoid needing updates when Java 27 and later versions are released. This pattern is consistent with other version checks in this file.

Suggested change
if (is64bit && (javaVersion >= 25 && javaVersion <= 26)) {
if (is64bit && javaVersion >= 25) {

Copilot uses AI. Check for mistakes.
res.addUnstableDefault("UseCompactObjectHeaders", true);
}

Expand Down
Loading