You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

BindingNullPointer.java 431B

1234567891011121314151617
  1. import org.aspectj.testing.*;
  2. public class BindingNullPointer {
  3. boolean ran = false;
  4. final String s1 = new String("s1");
  5. Runnable r1 = new Runnable() {
  6. public void run() {String = s1; ran = true;}
  7. };
  8. void go() {
  9. r1.run();
  10. Tester.check(ran, "r1.run did not run");
  11. }
  12. public static void main(String[] args) {
  13. new BindingNullPointer().go();
  14. }
  15. }