From cd120597a7fef187088a4d53cdd78450f0f233f7 Mon Sep 17 00:00:00 2001 From: jhugunin Date: Mon, 23 Dec 2002 22:57:19 +0000 Subject: changed callee-side call join point test to use execution --- tests/new/runtime/AllRuntime.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tests/new/runtime') diff --git a/tests/new/runtime/AllRuntime.java b/tests/new/runtime/AllRuntime.java index 6d817699c..cc7face15 100644 --- a/tests/new/runtime/AllRuntime.java +++ b/tests/new/runtime/AllRuntime.java @@ -52,6 +52,7 @@ public class AllRuntime { ok = me.catchThrows(); if (!ok) result++; + int temp = me.publicIntMethod(2); if (temp != 12) result++; @@ -213,13 +214,13 @@ aspect A { /** unused - enable to throw exception from run() */ public boolean TargetClass.throwException; - public void TargetClass.run() { + public void TargetClass.run() throws Exception { if (throwException) throwsException(); } //-------------------------------------- advice - /** callee-side call join point */ // todo: not being invoked, though TargetClass.toString is??? - before() : call(public String toString()) + /** was callee-side call join point, now is execution */ // todo: not being invoked, though TargetClass.toString is??? + before() : execution(public String toString()) && target(TargetClass) { /* comment out test to avoid StackOverflow test(thisJoinPoint, thisJoinPointStaticPart, this, @@ -469,7 +470,7 @@ aspect A { } sb.append(path); sb.append(":" + sl.getLine()); - sb.append(":" + sl.getColumn()); + //sb.append(":" + sl.getColumn()); } } -- cgit v1.2.3