aboutsummaryrefslogtreecommitdiffstats
path: root/tests/errors/BadNewArrayExprs.java
blob: 138b89ca618e833a99516027a4b00e30dc7c061e (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
class BadNewArrayExprs {
    static Object o;
    public static void main(String[] args) {
	o = new Test[][3];
	o = new Test[][];
	o = new Test[];
	o = new Test[3] { };
    }
}
/*

abstract class C { 
}
class D extends C {
}

class M {}

class X {
    abstract void foo();
}

class Y extends X {

    void foo(M m) {
	new C().m(m);
    }

    static aspect XXX {
	abstract private void C.m(M m); 

	private void D.m(M m) {
	    System.out.println("I'm in XXX " + m);
	}
    }
}

class Z extends X {
    void foo(M m) {
	new C().m(m);
    }

    static aspect XXX {
	abstract private void C.m(M m); 

	private void D.m(M m) {
	    System.out.println("I'm in YYY " + m);
	}
    }	
}
*/