vmtest/src/test/java/org/apidesign/bck2brwsr/tck/ReflectionTest.java
changeset 416 b2464b3fd015
parent 413 c91483c86597
child 418 c0bbf144c2c6
     1.1 --- a/vmtest/src/test/java/org/apidesign/bck2brwsr/tck/ReflectionTest.java	Mon Jan 07 18:27:01 2013 +0100
     1.2 +++ b/vmtest/src/test/java/org/apidesign/bck2brwsr/tck/ReflectionTest.java	Mon Jan 07 18:40:20 2013 +0100
     1.3 @@ -61,12 +61,12 @@
     1.4      }
     1.5      
     1.6      @Compare public String cannotCallNonStaticMethodWithNull() throws Exception {
     1.7 -        try {
     1.8 -            StaticUse.class.getMethod("instanceMethod").invoke(null);
     1.9 -            return "should not happen";
    1.10 -        } catch (Exception ex) {
    1.11 -            return ex.getClass().getName() + ":" + ex.getMessage();
    1.12 -        }
    1.13 +        StaticUse.class.getMethod("instanceMethod").invoke(null);
    1.14 +        return "should not happen";
    1.15 +    }
    1.16 +
    1.17 +    @Compare public Object voidReturnType() throws Exception {
    1.18 +        return StaticUse.class.getMethod("instanceMethod").getReturnType();
    1.19      }
    1.20      
    1.21      @Compare public String newInstanceFails() throws InstantiationException {