diff --git a/jode/jode/expr/PutFieldOperator.java b/jode/jode/expr/PutFieldOperator.java index 4c7fa72..c37bb59 100644 --- a/jode/jode/expr/PutFieldOperator.java +++ b/jode/jode/expr/PutFieldOperator.java @@ -45,12 +45,22 @@ public class PutFieldOperator extends StoreInstruction { } public boolean isSynthetic() { - if (!classType.equals(Type.tClass(codeAnalyzer.getClazz().getName()))) + if (!isThis()) return false; return codeAnalyzer.getClassAnalyzer() .getField(fieldName, fieldType).isSynthetic(); } + /** + * Checks, whether this is a call of a method from this class. + * @XXX check, if this class implements the method and if not + * allow super class + */ + public boolean isThis() { + return (classType.equals(Type.tClass(codeAnalyzer.getClazz(). + getName()))); + } + public String getFieldName() { return fieldName; }