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; }