aboutsummaryrefslogtreecommitdiffstats
path: root/tests/multiIncremental
diff options
context:
space:
mode:
authoraclement <aclement>2009-06-17 21:25:05 +0000
committeraclement <aclement>2009-06-17 21:25:05 +0000
commitf64c442ec64b878086171722c066ebd648a95977 (patch)
treec7476570afb5d51aacac069bc240c11f16b4f829 /tests/multiIncremental
parent9de8cbe6648d82970d6a8fb3cd3599f025c1ca8e (diff)
downloadaspectj-f64c442ec64b878086171722c066ebd648a95977.tar.gz
aspectj-f64c442ec64b878086171722c066ebd648a95977.zip
280651, 280658, 280676: testcases
Diffstat (limited to 'tests/multiIncremental')
-rw-r--r--tests/multiIncremental/pr280380/inc1/src/g/AnAspect.aj3
-rw-r--r--tests/multiIncremental/pr280651_decmix/base/src/aspects/MixinAspect.java18
-rw-r--r--tests/multiIncremental/pr280658_decp/base/src/aspects/ParentsAspect.java16
-rw-r--r--tests/multiIncremental/pr280658_target/base/src/test/Foo.classbin0 -> 675 bytes
-rw-r--r--tests/multiIncremental/pr280658_target/base/src/test/Foo.java11
-rw-r--r--tests/multiIncremental/pr280676/base/src/p/A.java6
-rw-r--r--tests/multiIncremental/pr280676/base/src/p/Foo.aj8
-rw-r--r--tests/multiIncremental/pr280676/inc1/src/p/Foo.aj8
-rw-r--r--tests/multiIncremental/pr280676/inc2/src/p/Foo.aj8
-rw-r--r--tests/multiIncremental/pr280676/inc3/src/p/Foo.aj8
10 files changed, 85 insertions, 1 deletions
diff --git a/tests/multiIncremental/pr280380/inc1/src/g/AnAspect.aj b/tests/multiIncremental/pr280380/inc1/src/g/AnAspect.aj
index aea980cbf..c3538cb31 100644
--- a/tests/multiIncremental/pr280380/inc1/src/g/AnAspect.aj
+++ b/tests/multiIncremental/pr280380/inc1/src/g/AnAspect.aj
@@ -1,9 +1,10 @@
package g;
import f.AClass;
+import f.*;
public aspect AnAspect {
- public int f.AClass.xxxx;
+ public int AClass.xxxx;
public int AClass.y() {
return 0;
diff --git a/tests/multiIncremental/pr280651_decmix/base/src/aspects/MixinAspect.java b/tests/multiIncremental/pr280651_decmix/base/src/aspects/MixinAspect.java
new file mode 100644
index 000000000..f8925d162
--- /dev/null
+++ b/tests/multiIncremental/pr280651_decmix/base/src/aspects/MixinAspect.java
@@ -0,0 +1,18 @@
+package aspects;
+
+import org.aspectj.lang.annotation.*;
+
+@Aspect
+public class MixinAspect {
+ @DeclareMixin(value = "test.Foo")
+ public static Runnable foo(Object target) {
+ return new DebugDefault();
+ }
+
+ public static class DebugDefault implements Runnable {
+ public void run() {
+ System.out.println("Hi there from MixinAspect");
+ }
+ }
+}
+
diff --git a/tests/multiIncremental/pr280658_decp/base/src/aspects/ParentsAspect.java b/tests/multiIncremental/pr280658_decp/base/src/aspects/ParentsAspect.java
new file mode 100644
index 000000000..7ad95e366
--- /dev/null
+++ b/tests/multiIncremental/pr280658_decp/base/src/aspects/ParentsAspect.java
@@ -0,0 +1,16 @@
+package aspects;
+import org.aspectj.lang.annotation.*;
+@Aspect
+public class ParentsAspect {
+
+ @DeclareParents(value = "test.Foo", defaultImpl = DebugDefault.class)
+ public Runnable runnable;
+
+ public static class DebugDefault implements Runnable {
+ public void run() {
+ System.out.println("hi there from ParentsAspect");
+ }
+ }
+}
+
+
diff --git a/tests/multiIncremental/pr280658_target/base/src/test/Foo.class b/tests/multiIncremental/pr280658_target/base/src/test/Foo.class
new file mode 100644
index 000000000..5681f16fa
--- /dev/null
+++ b/tests/multiIncremental/pr280658_target/base/src/test/Foo.class
Binary files differ
diff --git a/tests/multiIncremental/pr280658_target/base/src/test/Foo.java b/tests/multiIncremental/pr280658_target/base/src/test/Foo.java
new file mode 100644
index 000000000..e9f9cb741
--- /dev/null
+++ b/tests/multiIncremental/pr280658_target/base/src/test/Foo.java
@@ -0,0 +1,11 @@
+package test;
+import java.util.Arrays;
+public class Foo {
+ public static void main(String[] args) {
+ System.out.println(Arrays.toString(new
+Foo().getClass().getInterfaces()));
+ ((Runnable) new Foo()).run();
+ }
+}
+
+
diff --git a/tests/multiIncremental/pr280676/base/src/p/A.java b/tests/multiIncremental/pr280676/base/src/p/A.java
new file mode 100644
index 000000000..766c28800
--- /dev/null
+++ b/tests/multiIncremental/pr280676/base/src/p/A.java
@@ -0,0 +1,6 @@
+package p;
+
+public class A<N extends Number, T> {
+
+}
+
diff --git a/tests/multiIncremental/pr280676/base/src/p/Foo.aj b/tests/multiIncremental/pr280676/base/src/p/Foo.aj
new file mode 100644
index 000000000..3c9ab30be
--- /dev/null
+++ b/tests/multiIncremental/pr280676/base/src/p/Foo.aj
@@ -0,0 +1,8 @@
+package p;
+
+aspect Foo {
+
+ int A<X,Y>.i;
+
+ public void A<Z,X>.m() {}
+}
diff --git a/tests/multiIncremental/pr280676/inc1/src/p/Foo.aj b/tests/multiIncremental/pr280676/inc1/src/p/Foo.aj
new file mode 100644
index 000000000..5e6472f80
--- /dev/null
+++ b/tests/multiIncremental/pr280676/inc1/src/p/Foo.aj
@@ -0,0 +1,8 @@
+package p;
+
+aspect Foo {
+
+ int A.i; // removed type vars
+
+ public void A<Z,X>.m() {}
+}
diff --git a/tests/multiIncremental/pr280676/inc2/src/p/Foo.aj b/tests/multiIncremental/pr280676/inc2/src/p/Foo.aj
new file mode 100644
index 000000000..d774d26dd
--- /dev/null
+++ b/tests/multiIncremental/pr280676/inc2/src/p/Foo.aj
@@ -0,0 +1,8 @@
+package p;
+
+aspect Foo {
+
+ int A.i; // removed type vars
+
+ public void A.m() {}
+}
diff --git a/tests/multiIncremental/pr280676/inc3/src/p/Foo.aj b/tests/multiIncremental/pr280676/inc3/src/p/Foo.aj
new file mode 100644
index 000000000..c51ecc7e0
--- /dev/null
+++ b/tests/multiIncremental/pr280676/inc3/src/p/Foo.aj
@@ -0,0 +1,8 @@
+package p;
+
+aspect Foo {
+
+ int A.i; // removed type vars
+
+ public void A<Y,Z>.m() {}
+}