1.1 --- a/vmtest/src/test/java/org/apidesign/bck2brwsr/tck/ReflectionTest.java Mon Jan 07 17:22:59 2013 +0100
1.2 +++ b/vmtest/src/test/java/org/apidesign/bck2brwsr/tck/ReflectionTest.java Mon Jan 07 18:27:01 2013 +0100
1.3 @@ -39,6 +39,10 @@
1.4 return Integer.TYPE.toString();
1.5 }
1.6
1.7 + @Compare public String voidType() throws Exception {
1.8 + return void.class.toString();
1.9 + }
1.10 +
1.11 @Compare public String longClass() {
1.12 return long.class.toString();
1.13 }
1.14 @@ -56,6 +60,15 @@
1.15 return sb.toString();
1.16 }
1.17
1.18 + @Compare public String cannotCallNonStaticMethodWithNull() throws Exception {
1.19 + try {
1.20 + StaticUse.class.getMethod("instanceMethod").invoke(null);
1.21 + return "should not happen";
1.22 + } catch (Exception ex) {
1.23 + return ex.getClass().getName() + ":" + ex.getMessage();
1.24 + }
1.25 + }
1.26 +
1.27 @Compare public String newInstanceFails() throws InstantiationException {
1.28 try {
1.29 return "success: " + StaticUse.class.newInstance();