aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs/privilegedNPE/b/B.aj
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/privilegedNPE/b/B.aj')
-rw-r--r--tests/bugs/privilegedNPE/b/B.aj13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/bugs/privilegedNPE/b/B.aj b/tests/bugs/privilegedNPE/b/B.aj
new file mode 100644
index 000000000..9d8796a67
--- /dev/null
+++ b/tests/bugs/privilegedNPE/b/B.aj
@@ -0,0 +1,13 @@
+package b;
+
+import a.*;
+
+privileged aspect B {
+ void blah(ITD x) { x.returnNothing("y"); }
+
+ public static void main(String[]argv) {
+ ITD a = new ITD();
+ a.returnNothing("a");
+ System.err.println("Call returned OK!");
+ }
+}