aboutsummaryrefslogtreecommitdiffstats
path: root/tests/features151
diff options
context:
space:
mode:
authoraclement <aclement>2006-01-30 10:22:10 +0000
committeraclement <aclement>2006-01-30 10:22:10 +0000
commit2b5329c2a672ff32f8c941f0c56e475ea58ce5f3 (patch)
tree2a96c1d4315bdc252d5bb6e14b5a435c0b78afc7 /tests/features151
parentaf8ed913b0057fbe1b48d47a03c4390e7fdb591e (diff)
downloadaspectj-2b5329c2a672ff32f8c941f0c56e475ea58ce5f3.tar.gz
aspectj-2b5329c2a672ff32f8c941f0c56e475ea58ce5f3.zip
testcode for 125475/125480 (from matthew) and for enh 123423 (expose PTW type)
Diffstat (limited to 'tests/features151')
-rw-r--r--tests/features151/ptw/ExposedType.java25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/features151/ptw/ExposedType.java b/tests/features151/ptw/ExposedType.java
new file mode 100644
index 000000000..daa2974c8
--- /dev/null
+++ b/tests/features151/ptw/ExposedType.java
@@ -0,0 +1,25 @@
+public class ExposedType {
+ public static void main(String[] args) {
+ new ExposedTypeOne().foo();
+ new ExposedTypeTwo().foo();
+ new ExposedTypeThree().foo();
+ }
+}
+
+class ExposedTypeOne {
+ public void foo() { }
+}
+
+class ExposedTypeTwo {
+ public void foo() { }
+}
+
+class ExposedTypeThree {
+ public void foo() { }
+}
+
+aspect X pertypewithin(Exposed*) {
+ before(): execution(* foo(..)) {
+ System.err.println("here I am "+thisJoinPoint+": for class "+getWithinType());
+ }
+} \ No newline at end of file