summaryrefslogtreecommitdiffstats
path: root/tests/new/NulIOException3.java
blob: 19fd18c1d316018e7bd90e21cf84bed090855a36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import org.aspectj.testing.Tester;

/** windows treats filename "nul" specially, like /dev/null on unix */
public class NulIOException3 {
    public static void main(String[] args) {
    }
}
class TodoClassFormatError { // no ref to this in NulIOException3 - VM fails to load nul
    public static void main(String[] args) {
        Class c = nul.class;      // @testcase nul as class literal
        Object q = new nul();     // @testcase nul as constructor/class name
        Class C = subnul.class;
        Object r = new subnul();
        Tester.check(null != c, "null nul class");
        Tester.check(null != q, "null nul object");
        Tester.check(null != C, "null subnul class");
        Tester.check(null != r, "null subnul object");
    }
}
class nul { }  // @testcase nul as class name

class subnul extends nul { } // @testcase nul as reference to class name