From 4b8bed7cff98b2aca5586e604a138c3674453c90 Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 14 Nov 2005 10:38:47 +0000 Subject: tests and fixes for 115235: stackoverflow on concretizing pointcuts (patch from Helen) --- tests/bugs150/pr115235b.aj | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tests/bugs150/pr115235b.aj (limited to 'tests/bugs150/pr115235b.aj') diff --git a/tests/bugs150/pr115235b.aj b/tests/bugs150/pr115235b.aj new file mode 100644 index 000000000..5427debe8 --- /dev/null +++ b/tests/bugs150/pr115235b.aj @@ -0,0 +1,28 @@ +abstract aspect GenericAbstractAspect { + abstract protected pointcut pc(); + before() : pc() {} +} + +abstract aspect SubGenericAspect extends GenericAbstractAspect { + abstract protected pointcut pc1(); + abstract protected pointcut pc3(); + + protected pointcut pc() : pc1(); + protected pointcut pc2() : pc3(); +} + +// this should compile with no errors +aspect Concrete2 extends SubGenericAspect { + protected pointcut pc() : pc1(); + protected pointcut pc1() :pc3(); + protected pointcut pc3() : execution(* *(String)); +} + +class C { + + public void method(String s) { + } + + public void method2(int i) { + } +} -- cgit v1.2.3