From a050ca96df4d42960242f045537f0939500422de Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 28 Oct 1998 12:46:44 +0000 Subject: [PATCH] useType aufrufen, falls statisch git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@81 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/expr/InvokeOperator.java | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/jode/jode/expr/InvokeOperator.java b/jode/jode/expr/InvokeOperator.java index 1113d0c..a8fe352 100644 --- a/jode/jode/expr/InvokeOperator.java +++ b/jode/jode/expr/InvokeOperator.java @@ -40,6 +40,8 @@ public final class InvokeOperator extends Operator { this.staticFlag = staticFlag; this.specialFlag = specialFlag; this.field = field; + if (staticFlag) + classType.useType(); } public boolean isStatic() { @@ -91,17 +93,13 @@ public final class InvokeOperator extends Operator { public String toString(String[] operands) { String object = staticFlag - ? ((field.getCpoolClass().getName().getString() - .replace(java.io.File.separatorChar, '.') - .equals(codeAnalyzer.getClazz().getName())) + ? (classType.equals(Type.tType(codeAnalyzer.getClazz())) ? "" - : codeAnalyzer.getTypeString(getClassType())) + : classType.toString()) : (operands[0].equals("this") - ? ((specialFlag && - (field.getCpoolClass().getName().getString() - .replace(java.io.File.separatorChar, '.') - .equals(codeAnalyzer.getClazz() - .getSuperclass().getName()))) + ? (specialFlag && + classType.equals(Type.tType(codeAnalyzer.getClazz() + .getSuperclass())) ? "super" : "") : operands[0]);