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

Loading…
Cancel
Save