diff options
author | aclement <aclement> | 2006-06-19 10:17:28 +0000 |
---|---|---|
committer | aclement <aclement> | 2006-06-19 10:17:28 +0000 |
commit | abe25b029852a8c8e1c682a9a59413896d18dd2b (patch) | |
tree | 04eada1bb3d2e225f1f2986f1b6c3a48a7240ea5 /tests/bugs152 | |
parent | fdbae3fda3e572ea35ac4a73373896b9b5cff8f7 (diff) | |
download | aspectj-abe25b029852a8c8e1c682a9a59413896d18dd2b.tar.gz aspectj-abe25b029852a8c8e1c682a9a59413896d18dd2b.zip |
testcode and patches for pr141730 comments #13,14: "new handleprovider"
Diffstat (limited to 'tests/bugs152')
-rw-r--r-- | tests/bugs152/pr141730/aspectpath/MyBar.aj | 9 | ||||
-rw-r--r-- | tests/bugs152/pr141730/aspectpath/MyFoo.java | 11 | ||||
-rw-r--r-- | tests/bugs152/pr141730/aspectpath/aspectpath.jar | bin | 0 -> 1377 bytes | |||
-rw-r--r-- | tests/bugs152/pr141730/inpath/MyAnnotation.java | 5 | ||||
-rw-r--r-- | tests/bugs152/pr141730/inpath/MyBar.aj | 18 | ||||
-rw-r--r-- | tests/bugs152/pr141730/inpath/MyFoo.java | 25 | ||||
-rw-r--r-- | tests/bugs152/pr141730/inpath/NewClass.java | 5 | ||||
-rw-r--r-- | tests/bugs152/pr141730/inpath/inpath.jar | bin | 0 -> 739 bytes |
8 files changed, 73 insertions, 0 deletions
diff --git a/tests/bugs152/pr141730/aspectpath/MyBar.aj b/tests/bugs152/pr141730/aspectpath/MyBar.aj new file mode 100644 index 000000000..3a38885ce --- /dev/null +++ b/tests/bugs152/pr141730/aspectpath/MyBar.aj @@ -0,0 +1,9 @@ +package bar; + +public aspect MyBar { + + before() : call(* main(..)) { + System.out.println("about to call a main method"); + } + +} diff --git a/tests/bugs152/pr141730/aspectpath/MyFoo.java b/tests/bugs152/pr141730/aspectpath/MyFoo.java new file mode 100644 index 000000000..d733097cf --- /dev/null +++ b/tests/bugs152/pr141730/aspectpath/MyFoo.java @@ -0,0 +1,11 @@ +package foo; + +public class MyFoo { + + public void callMain() { + new MyFoo().main(); + } + + public void main() { + } +} diff --git a/tests/bugs152/pr141730/aspectpath/aspectpath.jar b/tests/bugs152/pr141730/aspectpath/aspectpath.jar Binary files differnew file mode 100644 index 000000000..27ccd5aa7 --- /dev/null +++ b/tests/bugs152/pr141730/aspectpath/aspectpath.jar diff --git a/tests/bugs152/pr141730/inpath/MyAnnotation.java b/tests/bugs152/pr141730/inpath/MyAnnotation.java new file mode 100644 index 000000000..16a690ce2 --- /dev/null +++ b/tests/bugs152/pr141730/inpath/MyAnnotation.java @@ -0,0 +1,5 @@ +package bar; + +public @interface MyAnnotation { + +} diff --git a/tests/bugs152/pr141730/inpath/MyBar.aj b/tests/bugs152/pr141730/inpath/MyBar.aj new file mode 100644 index 000000000..50ea6efd0 --- /dev/null +++ b/tests/bugs152/pr141730/inpath/MyBar.aj @@ -0,0 +1,18 @@ +package bar; + +import foo.*; + +public aspect MyBar { + + before() : call(* main(..)) {} + + declare warning: get( * System.out ) : "System.out should not be called"; + + declare parents : *Foo extends NewClass; + + declare @type : *Foo* : @MyAnnotation; + declare @method : public * *Foo.anotMethod(..) : @MyAnnotation; + declare @constructor : *Foo.new(String) : @MyAnnotation; + declare @field : int *Foo.* : @MyAnnotation ; + +} diff --git a/tests/bugs152/pr141730/inpath/MyFoo.java b/tests/bugs152/pr141730/inpath/MyFoo.java new file mode 100644 index 000000000..d9aba23f4 --- /dev/null +++ b/tests/bugs152/pr141730/inpath/MyFoo.java @@ -0,0 +1,25 @@ +package foo; + +public class MyFoo { + + public int i; + + public MyFoo() { + super(); + } + + public MyFoo(String s) { + super(); + } + + public void callMain() { + new MyFoo().main(); + } + + public void main() { + System.out.println("blah"); + } + + public void anotMethod() { + } +} diff --git a/tests/bugs152/pr141730/inpath/NewClass.java b/tests/bugs152/pr141730/inpath/NewClass.java new file mode 100644 index 000000000..cdbce29e5 --- /dev/null +++ b/tests/bugs152/pr141730/inpath/NewClass.java @@ -0,0 +1,5 @@ +package bar; + +public class NewClass { + +} diff --git a/tests/bugs152/pr141730/inpath/inpath.jar b/tests/bugs152/pr141730/inpath/inpath.jar Binary files differnew file mode 100644 index 000000000..ba262c555 --- /dev/null +++ b/tests/bugs152/pr141730/inpath/inpath.jar |