]> source.dussan.org Git - aspectj.git/commitdiff
Test for bug 83311 - dreaded clone() method being ITDd
authoraclement <aclement>
Thu, 16 Jun 2005 10:11:54 +0000 (10:11 +0000)
committeraclement <aclement>
Thu, 16 Jun 2005 10:11:54 +0000 (10:11 +0000)
tests/bugs150/pr83311.aj [new file with mode: 0644]

diff --git a/tests/bugs150/pr83311.aj b/tests/bugs150/pr83311.aj
new file mode 100644 (file)
index 0000000..83932c7
--- /dev/null
@@ -0,0 +1,22 @@
+aspect A {
+  public abstract Object I.clone();
+  public abstract Object I.ordinary();
+}
+
+interface I { }
+
+interface I2 {
+  public abstract Object clone();
+  public abstract Object ordinary();
+}
+
+
+class Impl implements I {
+  public Object clone() { return this;}
+  public Object ordinary() { return this;}
+}
+
+class Impl2 implements I2 {
+  public Object clone() { return this;}
+  public Object ordinary() { return this;}
+}