Fix tests

This commit is contained in:
Jindra Petřík
2024-09-30 18:55:35 +02:00
parent fb010614b4
commit cf1fd92e5a

View File

@@ -174,7 +174,12 @@ public class CallAVM2Item extends AVM2Item {
if (i >= arguments.size()) {
break;
}
TypeItem type = new TypeItem(abc.constants.getMultiname(mi.param_types[i]).getNameWithNamespace(abc.constants, true /*??*/));
GraphTargetItem type;
if (mi.param_types[i] == 0) {
type = TypeItem.UNBOUNDED;
} else {
type = new TypeItem(abc.constants.getMultiname(mi.param_types[i]).getNameWithNamespace(abc.constants, true /*??*/));
}
arguments.set(i, AVM2SourceGenerator.handleAndOrCoerce(arguments.get(i), type));
}
}