mirror of
https://github.com/eclipse-aspectj/aspectj.git
synced 2024-08-14 02:10:40 +02:00
18 lines
431 B
Java
18 lines
431 B
Java
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();
|
|
}
|
|
}
|