]> source.dussan.org Git - aspectj.git/commitdiff
263666: missing counter for around advice differing in return type
authoraclement <aclement>
Wed, 4 Feb 2009 21:19:47 +0000 (21:19 +0000)
committeraclement <aclement>
Wed, 4 Feb 2009 21:19:47 +0000 (21:19 +0000)
tests/bugs164/pr263666/x/A.java [new file with mode: 0644]
tests/bugs164/pr263666/x/B.java [new file with mode: 0644]
tests/bugs164/pr263666/x/OverrideOptions.aj [new file with mode: 0644]

diff --git a/tests/bugs164/pr263666/x/A.java b/tests/bugs164/pr263666/x/A.java
new file mode 100644 (file)
index 0000000..80fd124
--- /dev/null
@@ -0,0 +1,7 @@
+package x;
+
+public class A {
+       public boolean a() {
+               return false;
+       }
+}
diff --git a/tests/bugs164/pr263666/x/B.java b/tests/bugs164/pr263666/x/B.java
new file mode 100644 (file)
index 0000000..72c1961
--- /dev/null
@@ -0,0 +1,13 @@
+package x;
+
+public class B {
+       private int b() {
+               return b();
+       }
+
+       @Override
+       protected Object clone() throws CloneNotSupportedException {
+               b();
+               return super.clone();
+       }
+}
diff --git a/tests/bugs164/pr263666/x/OverrideOptions.aj b/tests/bugs164/pr263666/x/OverrideOptions.aj
new file mode 100644 (file)
index 0000000..cccc779
--- /dev/null
@@ -0,0 +1,32 @@
+package x;
+public aspect OverrideOptions
+{
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+   /**
+    * Comment A
+    */
+   boolean around() : execution( public boolean A.a() ) && this( A )
+   {
+       return false;
+   }
+   /**
+    * Comment B
+    */
+   int around() : execution(private int B.b(..)) && this(B){
+       return 0;
+   }
+}  
\ No newline at end of file