LocalLoad is not a ConstOperator!

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@393 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent 356d2a0aa1
commit 5b71b2acbf
  1. 8
      jode/jode/expr/LocalLoadOperator.java

@ -22,12 +22,12 @@ import jode.Decompiler;
import jode.Type; import jode.Type;
import jode.decompiler.LocalInfo; import jode.decompiler.LocalInfo;
public class LocalLoadOperator extends ConstOperator public class LocalLoadOperator extends NoArgOperator
implements LocalVarOperator { implements LocalVarOperator {
LocalInfo local; LocalInfo local;
public LocalLoadOperator(Type type, LocalInfo local) { public LocalLoadOperator(Type type, LocalInfo local) {
super(type, ""); super(type);
this.local = local; this.local = local;
local.setType(type); local.setType(type);
local.setOperator(this); local.setOperator(this);
@ -59,6 +59,10 @@ implements LocalVarOperator {
parent.updateType(); parent.updateType();
} }
public int getPriority() {
return 1000;
}
public Type getType() { public Type getType() {
// Decompiler.err.println("LocalLoad.getType of "+local.getName()+": "+local.getType()); // Decompiler.err.println("LocalLoad.getType of "+local.getName()+": "+local.getType());
return local.getType(); return local.getType();

Loading…
Cancel
Save