From 1fa8b08feed7ff90f9ed4fc759480cfe77b18db0 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 21 Aug 2008 16:29:48 +0000 Subject: [PATCH] 244830: test and fix: only initfailurecase field in singleton aspect --- tests/bugs162/pr244830/PTW.java | 26 +++++++++++++++++++ .../systemtest/ajc162/Ajc162Tests.java | 1 + .../org/aspectj/systemtest/ajc162/ajc162.xml | 5 ++++ 3 files changed, 32 insertions(+) create mode 100644 tests/bugs162/pr244830/PTW.java diff --git a/tests/bugs162/pr244830/PTW.java b/tests/bugs162/pr244830/PTW.java new file mode 100644 index 000000000..a45db9d1f --- /dev/null +++ b/tests/bugs162/pr244830/PTW.java @@ -0,0 +1,26 @@ +import java.lang.reflect.*; + +aspect X pertypewithin(A*) { + before(): execution(* *(..)) {} +} + +class A { + public void foo() {} +} + +class AA { + public void foo() {} +} +public class PTW { + public void foo() {} + + public static void main(String []argv) { + Field[] fs = X.class.getDeclaredFields(); + for (int i=0;i + + + + + -- 2.39.5