From: aclement Date: Thu, 29 Jan 2009 04:00:10 +0000 (+0000) Subject: 194314: moved to 164 X-Git-Tag: pre268419~181 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=377069ffe18e73576d225a329b154ec319a4c6ce;p=aspectj.git 194314: moved to 164 --- diff --git a/tests/bugs163/pr194314/IService.java b/tests/bugs163/pr194314/IService.java deleted file mode 100644 index ed383d0e6..000000000 --- a/tests/bugs163/pr194314/IService.java +++ /dev/null @@ -1,4 +0,0 @@ - -public interface IService { - void method(long l) throws Exception; -} diff --git a/tests/bugs163/pr194314/Main.java b/tests/bugs163/pr194314/Main.java deleted file mode 100644 index f90107620..000000000 --- a/tests/bugs163/pr194314/Main.java +++ /dev/null @@ -1,8 +0,0 @@ - -public class Main { - - public static void main(String[] args) throws Exception { - IService service = new Service(); - service.method(42L); - } -} diff --git a/tests/bugs163/pr194314/Service.java b/tests/bugs163/pr194314/Service.java deleted file mode 100644 index f3302fa40..000000000 --- a/tests/bugs163/pr194314/Service.java +++ /dev/null @@ -1,7 +0,0 @@ - -public class Service implements IService { - - public void method(long l) throws Exception { - System.err.println("Original impl of service method, arg " + l); - } -} diff --git a/tests/bugs163/pr194314/ServiceInterceptor.java b/tests/bugs163/pr194314/ServiceInterceptor.java deleted file mode 100644 index 00bb779fd..000000000 --- a/tests/bugs163/pr194314/ServiceInterceptor.java +++ /dev/null @@ -1,17 +0,0 @@ - -import org.aspectj.lang.ProceedingJoinPoint; -import org.aspectj.lang.annotation.Around; -import org.aspectj.lang.annotation.Aspect; - -@Aspect -public class ServiceInterceptor { - - @Around("execution(void test.Service.method(long))") - public void method(ProceedingJoinPoint pjp) throws Throwable { - Object[] args = pjp.getArgs(); - long id = (Long) args[0]; - System.out.println("in advice, arg = " + id + " (before proceed)"); - pjp.proceed(pjp.getArgs()); - System.out.println("in advice (after proceed)"); - } -} diff --git a/tests/bugs163/pr194314/ServiceInterceptorCodeStyle.java b/tests/bugs163/pr194314/ServiceInterceptorCodeStyle.java deleted file mode 100644 index b08047d6b..000000000 --- a/tests/bugs163/pr194314/ServiceInterceptorCodeStyle.java +++ /dev/null @@ -1,15 +0,0 @@ - -import org.aspectj.lang.ProceedingJoinPoint; -import org.aspectj.lang.annotation.Around; -import org.aspectj.lang.annotation.Aspect; - -public aspect ServiceInterceptorCodeStyle { - - void around(): execution(void Service.method(long)) { - Object[] args = thisJoinPoint.getArgs(); - long id = (Long) args[0]; - System.out.println("in advice, arg = " + id + " (before proceed)"); - proceed(); - System.out.println("in advice (after proceed)"); - } -}