aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/BindingNullPointer.java
blob: 06ec48c6db6d5fed99078e36a909ce928580371b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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();
    }
}