Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'othersrc')
-rw-r--r--othersrc/OTRE/src/org/eclipse/objectteams/otre/ThreadActivation.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/othersrc/OTRE/src/org/eclipse/objectteams/otre/ThreadActivation.java b/othersrc/OTRE/src/org/eclipse/objectteams/otre/ThreadActivation.java
index 88ab77817..983929721 100644
--- a/othersrc/OTRE/src/org/eclipse/objectteams/otre/ThreadActivation.java
+++ b/othersrc/OTRE/src/org/eclipse/objectteams/otre/ThreadActivation.java
@@ -148,6 +148,7 @@ public class ThreadActivation
il.dispose();
}
// is method a constructor that does not invoke another this()-ctor?
+ @SuppressWarnings("deprecation")
private MethodGen isRootCtor(Method method, ClassGen cg) {
if (!method.getName().equals("<init>"))
return null;
@@ -161,7 +162,7 @@ public class ThreadActivation
}
if (ih == null)
return null;
- if (((InvokeInstruction)ih.getInstruction()).getClassName(cpg).equals(className))
+ if (((InvokeInstruction)ih.getInstruction()).getClassName(cpg).equals(className)) // unsafe due to object/array ambiguity, but we have no array (is an invokespecial!)
return null; // this-call
return mg;
}

Back to the top