]> source.dussan.org Git - aspectj.git/commitdiff
194314: moved to 164
authoraclement <aclement>
Thu, 29 Jan 2009 04:00:10 +0000 (04:00 +0000)
committeraclement <aclement>
Thu, 29 Jan 2009 04:00:10 +0000 (04:00 +0000)
tests/bugs163/pr194314/IService.java [deleted file]
tests/bugs163/pr194314/Main.java [deleted file]
tests/bugs163/pr194314/Service.java [deleted file]
tests/bugs163/pr194314/ServiceInterceptor.java [deleted file]
tests/bugs163/pr194314/ServiceInterceptorCodeStyle.java [deleted file]

diff --git a/tests/bugs163/pr194314/IService.java b/tests/bugs163/pr194314/IService.java
deleted file mode 100644 (file)
index ed383d0..0000000
+++ /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 (file)
index f901076..0000000
+++ /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 (file)
index f3302fa..0000000
+++ /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 (file)
index 00bb779..0000000
+++ /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 (file)
index b08047d..0000000
+++ /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)");
-    }
-}