From 377069ffe18e73576d225a329b154ec319a4c6ce Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 29 Jan 2009 04:00:10 +0000 Subject: [PATCH] 194314: moved to 164 --- tests/bugs163/pr194314/IService.java | 4 ---- tests/bugs163/pr194314/Main.java | 8 -------- tests/bugs163/pr194314/Service.java | 7 ------- tests/bugs163/pr194314/ServiceInterceptor.java | 17 ----------------- .../pr194314/ServiceInterceptorCodeStyle.java | 15 --------------- 5 files changed, 51 deletions(-) delete mode 100644 tests/bugs163/pr194314/IService.java delete mode 100644 tests/bugs163/pr194314/Main.java delete mode 100644 tests/bugs163/pr194314/Service.java delete mode 100644 tests/bugs163/pr194314/ServiceInterceptor.java delete mode 100644 tests/bugs163/pr194314/ServiceInterceptorCodeStyle.java 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)"); - } -} -- 2.39.5