miroir de
https://github.com/eclipse-aspectj/aspectj.git
synchronisé 2024-08-26 17:58:43 +02:00
24 lignes
876 B
Java
24 lignes
876 B
Java
|
|
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
|