diff options
Diffstat (limited to 'tests/new/NulIOException3.java')
-rw-r--r-- | tests/new/NulIOException3.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/new/NulIOException3.java b/tests/new/NulIOException3.java new file mode 100644 index 000000000..19fd18c1d --- /dev/null +++ b/tests/new/NulIOException3.java @@ -0,0 +1,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 |