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

Loading…
Cancel
Save