diff options
author | mwebster <mwebster> | 2006-07-07 13:42:43 +0000 |
---|---|---|
committer | mwebster <mwebster> | 2006-07-07 13:42:43 +0000 |
commit | 5c20db9edf8ecda77db8ad56288f615b11db1385 (patch) | |
tree | 7d606e7bd910e34394b59b2b1a0df158ad669667 /tests/bugs153 | |
parent | 58bbbe871e85fa2dfc92587b0715e0b04dab190c (diff) | |
download | aspectj-5c20db9edf8ecda77db8ad56288f615b11db1385.tar.gz aspectj-5c20db9edf8ecda77db8ad56288f615b11db1385.zip |
Testcase for Bug 149322 "Change Xlint cantFindType default to warning"
Diffstat (limited to 'tests/bugs153')
-rw-r--r-- | tests/bugs153/pr149322/Aspect.aj | 7 | ||||
-rw-r--r-- | tests/bugs153/pr149322/Interface.java | 5 | ||||
-rw-r--r-- | tests/bugs153/pr149322/Missing.java | 8 | ||||
-rw-r--r-- | tests/bugs153/pr149322/TestFail.java | 14 | ||||
-rw-r--r-- | tests/bugs153/pr149322/TestPass.java | 13 | ||||
-rw-r--r-- | tests/bugs153/pr149322/aop.xml | 6 |
6 files changed, 53 insertions, 0 deletions
diff --git a/tests/bugs153/pr149322/Aspect.aj b/tests/bugs153/pr149322/Aspect.aj new file mode 100644 index 000000000..80b75e925 --- /dev/null +++ b/tests/bugs153/pr149322/Aspect.aj @@ -0,0 +1,7 @@ + +public aspect Aspect { + + before () : call(public * method(..)) && target(Interface) { + System.out.println("Aspect.before()"); + } +} diff --git a/tests/bugs153/pr149322/Interface.java b/tests/bugs153/pr149322/Interface.java new file mode 100644 index 000000000..8b6b247f0 --- /dev/null +++ b/tests/bugs153/pr149322/Interface.java @@ -0,0 +1,5 @@ + +public interface Interface { + + public void method (); +} diff --git a/tests/bugs153/pr149322/Missing.java b/tests/bugs153/pr149322/Missing.java new file mode 100644 index 000000000..51d8dc42e --- /dev/null +++ b/tests/bugs153/pr149322/Missing.java @@ -0,0 +1,8 @@ + +public class Missing implements Interface { + + public void method () { + System.out.println("Missing.method()"); + } + +} diff --git a/tests/bugs153/pr149322/TestFail.java b/tests/bugs153/pr149322/TestFail.java new file mode 100644 index 000000000..549a48b3b --- /dev/null +++ b/tests/bugs153/pr149322/TestFail.java @@ -0,0 +1,14 @@ +public class TestFail { + + public void invoke () { + Interface i = new Missing(); + i.method(); + Missing cf = new Missing(); + cf.method(); + } + + public static void main(String[] args) { + new TestFail().invoke(); + } + +} diff --git a/tests/bugs153/pr149322/TestPass.java b/tests/bugs153/pr149322/TestPass.java new file mode 100644 index 000000000..c7430339d --- /dev/null +++ b/tests/bugs153/pr149322/TestPass.java @@ -0,0 +1,13 @@ + +public class TestPass { + + public void invoke () { + Interface i = new CantFind(); + i.method(); + } + + public static void main(String[] args) { + new TestFail(); + } + +} diff --git a/tests/bugs153/pr149322/aop.xml b/tests/bugs153/pr149322/aop.xml new file mode 100644 index 000000000..ec0fcfb8b --- /dev/null +++ b/tests/bugs153/pr149322/aop.xml @@ -0,0 +1,6 @@ +<aspectj> + <aspects> + <aspect name="Aspect"/> + </aspects> + <weaver options="-verbose -showWeaveInfo"/> +</aspectj>
\ No newline at end of file |