diff options
Diffstat (limited to 'tests/errors/BindingNullPointer.java')
-rw-r--r-- | tests/errors/BindingNullPointer.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/errors/BindingNullPointer.java b/tests/errors/BindingNullPointer.java new file mode 100644 index 000000000..06ec48c6d --- /dev/null +++ b/tests/errors/BindingNullPointer.java @@ -0,0 +1,17 @@ +import org.aspectj.testing.*; + +public class BindingNullPointer { + boolean ran = false; + final String s1 = new String("s1"); + Runnable r1 = new Runnable() { + public void run() {String = s1; ran = true;} + }; + void go() { + r1.run(); + Tester.check(ran, "r1.run did not run"); + } + + public static void main(String[] args) { + new BindingNullPointer().go(); + } +} |