tType instead of tClass (ref.getClazz)

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@577 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent c5ca796da1
commit 1cc3e8d6b7
  1. 4
      jode/jode/expr/GetFieldOperator.java

@ -34,7 +34,7 @@ public class GetFieldOperator extends Operator {
super(Type.tType(ref.getType()), 0);
this.codeAnalyzer = codeAnalyzer;
this.staticFlag = staticFlag;
this.classType = Type.tClass(ref.getClazz());
this.classType = Type.tType(ref.getClazz());
this.ref = ref;
if (staticFlag)
classType.useType();
@ -64,7 +64,7 @@ public class GetFieldOperator extends Operator {
public String toString(String[] operands) {
String fieldName = ref.getName();
return staticFlag
? (classType.equals(Type.tClass(codeAnalyzer.getClazz().getName()))
? (classType.equals(Type.tClass(codeAnalyzer.getClazz()))
&& codeAnalyzer.findLocal(fieldName) == null
? fieldName
: classType.toString() + "." + fieldName)

Loading…
Cancel
Save