summaryrefslogtreecommitdiffstats
path: root/tests/features151
diff options
context:
space:
mode:
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