aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs162/pr244830
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs162/pr244830')
-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");
+ }
+ }
+ }
+}
+