summaryrefslogtreecommitdiffstats
path: root/tests/java5/ataspectj/annotationGen/ReferencePointcuts.aj
diff options
context:
space:
mode:
Diffstat (limited to 'tests/java5/ataspectj/annotationGen/ReferencePointcuts.aj')
-rw-r--r--tests/java5/ataspectj/annotationGen/ReferencePointcuts.aj4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/java5/ataspectj/annotationGen/ReferencePointcuts.aj b/tests/java5/ataspectj/annotationGen/ReferencePointcuts.aj
index e6014d7da..37be4f1ff 100644
--- a/tests/java5/ataspectj/annotationGen/ReferencePointcuts.aj
+++ b/tests/java5/ataspectj/annotationGen/ReferencePointcuts.aj
@@ -8,10 +8,10 @@ public aspect ReferencePointcuts {
public static void main(String[] args) throws NoSuchPointcutException {
AjType myType = AjTypeSystem.getAjType(ReferencePointcuts.class);
- Pointcut p1 = myType.getPointcut("pc1");
+ Pointcut p1 = myType.getDeclaredPointcut("pc1");
if (!p1.getPointcutExpression().toString().equals("call(* *(..))"))
throw new RuntimeException("unexpected pc expression: " + p1.getPointcutExpression());
- Pointcut p2 = myType.getPointcut("pc2");
+ Pointcut p2 = myType.getDeclaredPointcut("pc2");
if (!p2.getPointcutExpression().toString().equals("(pc1() || execution(* *(..)))"))
throw new RuntimeException("unexpected pc expression: " + p2.getPointcutExpression());