diff options
11 files changed, 93 insertions, 0 deletions
diff --git a/tests/bugs1610/pr322446/Code.java b/tests/bugs1610/pr322446/Code.java new file mode 100644 index 000000000..0b91530f3 --- /dev/null +++ b/tests/bugs1610/pr322446/Code.java @@ -0,0 +1,7 @@ +public class Code { + public static void main(String[]argv) { + System.out.println((new Code()) instanceof I); + } +} + +aspect Sub extends Super<Code> {} diff --git a/tests/bugs1610/pr322446/I.java b/tests/bugs1610/pr322446/I.java new file mode 100644 index 000000000..9598922a7 --- /dev/null +++ b/tests/bugs1610/pr322446/I.java @@ -0,0 +1 @@ +public interface I {} diff --git a/tests/bugs1610/pr322446/Super.java b/tests/bugs1610/pr322446/Super.java new file mode 100644 index 000000000..246a679b1 --- /dev/null +++ b/tests/bugs1610/pr322446/Super.java @@ -0,0 +1,3 @@ +abstract aspect Super<T> { + declare parents: T implements I; +} diff --git a/tests/multiIncremental/pr322446/base/src/AbstractAspect.java b/tests/multiIncremental/pr322446/base/src/AbstractAspect.java new file mode 100644 index 000000000..ee6532b52 --- /dev/null +++ b/tests/multiIncremental/pr322446/base/src/AbstractAspect.java @@ -0,0 +1,4 @@ +public abstract aspect AbstractAspect { + interface X { } + declare parents : Class extends X; +} diff --git a/tests/multiIncremental/pr322446/base/src/Aspect.java b/tests/multiIncremental/pr322446/base/src/Aspect.java new file mode 100644 index 000000000..4e6659bdf --- /dev/null +++ b/tests/multiIncremental/pr322446/base/src/Aspect.java @@ -0,0 +1 @@ +public aspect Aspect extends AbstractAspect { } diff --git a/tests/multiIncremental/pr322446/base/src/Class.java b/tests/multiIncremental/pr322446/base/src/Class.java new file mode 100644 index 000000000..7251d957b --- /dev/null +++ b/tests/multiIncremental/pr322446/base/src/Class.java @@ -0,0 +1 @@ +public class Class { } diff --git a/tests/multiIncremental/pr322446_2/base/src/Sub.java b/tests/multiIncremental/pr322446_2/base/src/Sub.java new file mode 100644 index 000000000..c5b1d5ca2 --- /dev/null +++ b/tests/multiIncremental/pr322446_2/base/src/Sub.java @@ -0,0 +1,4 @@ +aspect Sub extends Super<Code,I> { +} +interface I {} +class Code {} diff --git a/tests/multiIncremental/pr322446_2/base/src/Super.java b/tests/multiIncremental/pr322446_2/base/src/Super.java new file mode 100644 index 000000000..e6375b7f0 --- /dev/null +++ b/tests/multiIncremental/pr322446_2/base/src/Super.java @@ -0,0 +1,3 @@ +abstract aspect Super<A,B> { + declare parents: A implements B; +} diff --git a/tests/multiIncremental/pr322446_3/base/src/AbstractAspect.java b/tests/multiIncremental/pr322446_3/base/src/AbstractAspect.java new file mode 100644 index 000000000..ee07866b4 --- /dev/null +++ b/tests/multiIncremental/pr322446_3/base/src/AbstractAspect.java @@ -0,0 +1,23 @@ +//package org.springframework.persistence.test; + +public abstract aspect AbstractAspect<S, T> { + declare parents : Class extends S; + declare parents : Class extends T; +} + +aspect Aspect extends AbstractAspect<X, Y> { +/* void something(X x) { + something(new Class()); + } + void something2(Y y) { + something2(new Class()); + }*/ +} + +interface X { } +interface Y { } + +class Class { + + +} diff --git a/tests/multiIncremental/pr322446_3/inc1/src/AbstractAspect.java b/tests/multiIncremental/pr322446_3/inc1/src/AbstractAspect.java new file mode 100644 index 000000000..0dfb49891 --- /dev/null +++ b/tests/multiIncremental/pr322446_3/inc1/src/AbstractAspect.java @@ -0,0 +1,23 @@ +//package org.springframework.persistence.test; + +public abstract aspect AbstractAspect<S> { + declare parents : Class extends S; + declare parents : Class extends T; +} + +aspect Aspect extends AbstractAspect<X, Y> { +/* void something(X x) { + something(new Class()); + } + void something2(Y y) { + something2(new Class()); + }*/ +} + +interface X { } +interface Y { } + +class Class { + + +} diff --git a/tests/multiIncremental/pr322446_3/inc2/src/AbstractAspect.java b/tests/multiIncremental/pr322446_3/inc2/src/AbstractAspect.java new file mode 100644 index 000000000..ee07866b4 --- /dev/null +++ b/tests/multiIncremental/pr322446_3/inc2/src/AbstractAspect.java @@ -0,0 +1,23 @@ +//package org.springframework.persistence.test; + +public abstract aspect AbstractAspect<S, T> { + declare parents : Class extends S; + declare parents : Class extends T; +} + +aspect Aspect extends AbstractAspect<X, Y> { +/* void something(X x) { + something(new Class()); + } + void something2(Y y) { + something2(new Class()); + }*/ +} + +interface X { } +interface Y { } + +class Class { + + +} |