Skip to content

Bump version of jvmdg to 2.0.1 - #84

Merged
Nikolay-Sitnikov merged 1 commit into
masterfrom
update-jvmdg
Aug 8, 2026
Merged

Bump version of jvmdg to 2.0.1#84
Nikolay-Sitnikov merged 1 commit into
masterfrom
update-jvmdg

Conversation

@Nikolay-Sitnikov

@Nikolay-Sitnikov Nikolay-Sitnikov commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Updates JVM Downgrader to version 2.0.1, which includes a fix for switch statements testing for instance-of being miscompiled for Java versions 21, 22, and 23 (see unimined/JvmDowngrader#46 for details.)

PR has been tested: without this changed version of GTNHGradle applied, running code like this within a mod would cause a crash on Java 21. With this change, this code runs successfully on Java 21.

Number num = 10;
switch (num) {
    case Integer i -> {
        System.out.println(i);
    }
    case Double d -> {
        System.out.println(d);
    }
    default -> {}
}

Checklist

  • I have tested this PR in DevEnv
  • I have tested this PR in Fullpack - Should be irrelevant.
  • This PR is in compliance with the GTNH AI Policy
  • This PR requires another PR in order to merge

@eigenraven eigenraven left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

GTNHLib will also need a matching stub update and then a bump in UpdateableConstants in GTNHGradle

@Nikolay-Sitnikov
Nikolay-Sitnikov merged commit debafed into master Aug 8, 2026
1 check passed
@Nikolay-Sitnikov
Nikolay-Sitnikov deleted the update-jvmdg branch August 8, 2026 08:07
Nikolay-Sitnikov added a commit to GTNewHorizons/GTNHExtLib that referenced this pull request Aug 8, 2026
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.

2 participants