From bcd845a998882f4abdfa3aa8b17651baf0e05d65 Mon Sep 17 00:00:00 2001 From: jochen Date: Tue, 27 Apr 1999 18:09:16 +0000 Subject: [PATCH] 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 --- jode/jode/expr/InvokeOperator.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/jode/jode/expr/InvokeOperator.java b/jode/jode/expr/InvokeOperator.java index b05a8e6..c20d535 100644 --- a/jode/jode/expr/InvokeOperator.java +++ b/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) {