diff options
Diffstat (limited to 'tests/multiIncremental/PR192877')
6 files changed, 49 insertions, 0 deletions
diff --git a/tests/multiIncremental/PR192877/base/src/DefaultTestImpl.java b/tests/multiIncremental/PR192877/base/src/DefaultTestImpl.java new file mode 100644 index 000000000..1a2954354 --- /dev/null +++ b/tests/multiIncremental/PR192877/base/src/DefaultTestImpl.java @@ -0,0 +1,10 @@ + +public class DefaultTestImpl implements Test { + public void methodA() { + System.out.println("methodA"); + } + + public void methodB() { + System.out.println("methodB"); + } +} diff --git a/tests/multiIncremental/PR192877/base/src/Foo.java b/tests/multiIncremental/PR192877/base/src/Foo.java new file mode 100644 index 000000000..9eac48b58 --- /dev/null +++ b/tests/multiIncremental/PR192877/base/src/Foo.java @@ -0,0 +1,4 @@ + +public interface Foo { + void doSomething(); +} diff --git a/tests/multiIncremental/PR192877/base/src/FooImpl.java b/tests/multiIncremental/PR192877/base/src/FooImpl.java new file mode 100644 index 000000000..85c45fa74 --- /dev/null +++ b/tests/multiIncremental/PR192877/base/src/FooImpl.java @@ -0,0 +1,5 @@ +public class FooImpl implements Foo { + public void doSomething() { + System.out.println("doSomething"); + } +} diff --git a/tests/multiIncremental/PR192877/base/src/Test.java b/tests/multiIncremental/PR192877/base/src/Test.java new file mode 100644 index 000000000..7d6914e2c --- /dev/null +++ b/tests/multiIncremental/PR192877/base/src/Test.java @@ -0,0 +1,5 @@ +public interface Test { + void methodA(); + + void methodB(); +} diff --git a/tests/multiIncremental/PR192877/base/src/TestAspect.java b/tests/multiIncremental/PR192877/base/src/TestAspect.java new file mode 100644 index 000000000..50d1d1dc9 --- /dev/null +++ b/tests/multiIncremental/PR192877/base/src/TestAspect.java @@ -0,0 +1,20 @@ +import org.aspectj.lang.annotation.Aspect; +import org.aspectj.lang.annotation.Before; +import org.aspectj.lang.annotation.DeclareParents; + +@Aspect +public class TestAspect { + @DeclareParents(value="Foo+",defaultImpl=DefaultTestImpl.class) + public Test implementedInterface; + + @Before("execution(* Foo.doSomething()) && this(t)") + public void verifyRunningSender(Test t) { + t.methodA(); + t.methodB(); + } + + public static void main(String[] args) { + Foo foo = new FooImpl(); + foo.doSomething(); + } +}
\ No newline at end of file diff --git a/tests/multiIncremental/PR192877/inc1/src/Test.java b/tests/multiIncremental/PR192877/inc1/src/Test.java new file mode 100644 index 000000000..7d6914e2c --- /dev/null +++ b/tests/multiIncremental/PR192877/inc1/src/Test.java @@ -0,0 +1,5 @@ +public interface Test { + void methodA(); + + void methodB(); +} |