From dd2e4bb00187cc231dfd9582fcfb81b8b62dd2ca Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Fri, 2 Aug 2024 15:26:36 +0200 Subject: [PATCH] wasm: fix error in ClassMetadataRequirements causing compiler crash --- .../org/teavm/model/analysis/ClassMetadataRequirements.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/teavm/model/analysis/ClassMetadataRequirements.java b/core/src/main/java/org/teavm/model/analysis/ClassMetadataRequirements.java index 037f45929..f8c5dea4c 100644 --- a/core/src/main/java/org/teavm/model/analysis/ClassMetadataRequirements.java +++ b/core/src/main/java/org/teavm/model/analysis/ClassMetadataRequirements.java @@ -64,7 +64,7 @@ public class ClassMetadataRequirements { var isAssignableMethod = dependencyInfo.getMethod(IS_ASSIGNABLE_METHOD); if (isAssignableMethod != null) { - var classNames = getSuperclassMethod.getVariable(0).getClassValueNode().getTypes(); + var classNames = isAssignableMethod.getVariable(0).getClassValueNode().getTypes(); for (var className : classNames) { requirements.computeIfAbsent(decodeType(className), k -> new ClassInfo()).isAssignable = true; }