wasm: fix error in ClassMetadataRequirements causing compiler crash

This commit is contained in:
Alexey Andreev 2024-08-02 15:26:36 +02:00
parent 8d276f2efd
commit dd2e4bb001

View File

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