bug fix: remove dot for static methods in current class

git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@633 379699f6-c40d-0410-875b-85095c16579e
stable
jochen 26 years ago
parent cbaa186d67
commit bcd845a998
  1. 8
      jode/jode/expr/InvokeOperator.java

@ -142,9 +142,9 @@ public final class InvokeOperator extends Operator
boolean opIsThis = boolean opIsThis =
(!staticFlag (!staticFlag
&& operands[0] instanceof LocalLoadOperator && operands[0] instanceof LocalLoadOperator
&& !codeAnalyzer.getMethod().isStatic()
&& (((LocalLoadOperator) operands[0]).getLocalInfo() && (((LocalLoadOperator) operands[0]).getLocalInfo()
.equals(codeAnalyzer.getParamInfo(0))) .equals(codeAnalyzer.getParamInfo(0))));
&& !codeAnalyzer.getMethod().isStatic());
int arg = 1; int arg = 1;
if (specialFlag) { if (specialFlag) {
@ -168,7 +168,9 @@ public final class InvokeOperator extends Operator
} }
} else if (staticFlag) { } else if (staticFlag) {
arg = 0; arg = 0;
if (!isThis()) if (isThis())
opIsThis = true;
else
writer.printType(clazz); writer.printType(clazz);
} else { } else {
if (!opIsThis) { if (!opIsThis) {

Loading…
Cancel
Save