Skip to content

Commit fb70dce

Browse files
[GR-67780] invokeinterface ICCE is fixed on JDK 26+
1 parent ecee6f1 commit fb70dce

File tree

1 file changed

+2
-2
lines changed
  • espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/impl

1 file changed

+2
-2
lines changed

espresso/src/com.oracle.truffle.espresso/src/com/oracle/truffle/espresso/impl/Method.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1961,10 +1961,10 @@ private EspressoException unsatisfiedLinkError() {
19611961
private void checkPoisonPill(Meta meta) {
19621962
if (poisonPill) {
19631963
// Conflicting Maximally-specific non-abstract interface methods.
1964-
if (getJavaVersion().java9OrLater() && getSpecComplianceMode() == EspressoOptions.SpecComplianceMode.HOTSPOT) {
1964+
if (getJavaVersion().inRange(9, 25) && getSpecComplianceMode() == EspressoOptions.SpecComplianceMode.HOTSPOT) {
19651965
/*
19661966
* Supposed to be IncompatibleClassChangeError (see jvms-6.5.invokeinterface),
1967-
* but HotSpot throws AbstractMethodError.
1967+
* but HotSpot throws AbstractMethodError. See JDK-8356942.
19681968
*/
19691969
throw meta.throwExceptionWithMessage(meta.java_lang_AbstractMethodError, "Conflicting default methods: " + getName());
19701970
}

0 commit comments

Comments
 (0)