aboutsummaryrefslogtreecommitdiffstats
path: root/tests/pureJava/FullNames.java
blob: d2621b13062087cc101b00236072c16976dcbe87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import org.aspectj.testing.Tester;
import org.aspectj.testing.Tester; 
public class FullNames {
    public static void main(String[] args) {
        new FullNames().realMain(args);
    }
    public void realMain(String[] args) {
        a();
        b();
        c();
        Tester.checkAllEvents();
    }
    static {
        Tester.expectEvent("a");
        Tester.expectEvent("b");
        Tester.expectEvent(String.class.toString()); // XXX changed w/o understanding
    }
    private void a() {
        String java = new String("a");
        Tester.event(java);
    }
    public void b() {
        String java = String.copyValueOf(new char[]{'b'});
        Tester.event(java);
    }
    public void c() {
        Class java = String.class;
        Tester.event(java.toString()); // XXX changed w/o understanding
    }
}