aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs162
diff options
context:
space:
mode:
authoraclement <aclement>2008-08-21 16:29:48 +0000
committeraclement <aclement>2008-08-21 16:29:48 +0000
commit1fa8b08feed7ff90f9ed4fc759480cfe77b18db0 (patch)
tree6e227c51a3a461259e072798af0b7107260c83b8 /tests/bugs162
parent9c17216914f955f65c44293970f4f6801e1536b8 (diff)
downloadaspectj-1fa8b08feed7ff90f9ed4fc759480cfe77b18db0.tar.gz
aspectj-1fa8b08feed7ff90f9ed4fc759480cfe77b18db0.zip
244830: test and fix: only initfailurecase field in singleton aspect
Diffstat (limited to 'tests/bugs162')
-rw-r--r--tests/bugs162/pr244830/PTW.java26
1 files changed, 26 insertions, 0 deletions
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<fs.length;i++) {
+ if (fs[i].getName().equals("ajc$initFailureCause")) {
+ throw new RuntimeException("Should be no ajc$initFailureCause field for ptw");
+ }
+ }
+ }
+}
+