aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150
diff options
context:
space:
mode:
authoraclement <aclement>2005-11-21 15:42:46 +0000
committeraclement <aclement>2005-11-21 15:42:46 +0000
commit6db0502ddfe567f53047f4af44a18ce6c03eee50 (patch)
tree3c092a5aa103f7075b666b68e6042363295b4094 /tests/bugs150
parent6bda5d41e9a0c8a31a6675e8374cf45f25331edd (diff)
downloadaspectj-6db0502ddfe567f53047f4af44a18ce6c03eee50.tar.gz
aspectj-6db0502ddfe567f53047f4af44a18ce6c03eee50.zip
tidied up a bit.
Diffstat (limited to 'tests/bugs150')
-rw-r--r--tests/bugs150/pr115250_2.aj15
1 files changed, 4 insertions, 11 deletions
diff --git a/tests/bugs150/pr115250_2.aj b/tests/bugs150/pr115250_2.aj
index 37cfd0eef..51bb6b419 100644
--- a/tests/bugs150/pr115250_2.aj
+++ b/tests/bugs150/pr115250_2.aj
@@ -1,17 +1,10 @@
public class pr115250_2 {
public static void main(String[] args) {
- test();
- }
- public static void test() {
new C().foo();
}
static class C {
- C() {
- System.err.println("C.new() running");
- }
-
- C foo() { return null; }
+ C foo() { return null; }
}
// properly get compiler error wrt return type of join point
@@ -25,14 +18,14 @@ public class pr115250_2 {
// no compiler error wrt return type of join point
static abstract aspect SS<Target> {
- abstract protected pointcut creation();
- Target around() : creation() { // expect CE for execution(C.new());
+ abstract protected pointcut exec();
+ Target around() : exec() { // expect CE for execution(C.new());
System.err.println("funky advice running");
return proceed();
}
}
static aspect A extends SS<C> {
- protected pointcut creation() : execution(* C.foo());
+ protected pointcut exec() : execution(* C.foo());
}
}