body constructor fix in GUI

This commit is contained in:
Jindra Petřík
2015-10-28 08:34:51 +01:00
parent 5f7564ecbc
commit 81c06e7d37

View File

@@ -814,7 +814,7 @@ public class ABCPanel extends JPanel implements ItemListener, SearchListener<ABC
MethodInfo mi = new MethodInfo(new int[0], void_type, abc.constants.getStringId(name, true), 0, new ValueKind[0], new int[0]);
int method_info = abc.addMethodInfo(mi);
tm.method_info = method_info;
MethodBody body = new MethodBody(abc);
MethodBody body = new MethodBody(abc, new Traits(), new byte[0], new ABCException[0]);
body.method_info = method_info;
body.init_scope_depth = 1;
body.max_regs = 1;