diff -r c91483c86597 -r b2464b3fd015 vmtest/src/test/java/org/apidesign/bck2brwsr/tck/ReflectionTest.java --- a/vmtest/src/test/java/org/apidesign/bck2brwsr/tck/ReflectionTest.java Mon Jan 07 18:27:01 2013 +0100 +++ b/vmtest/src/test/java/org/apidesign/bck2brwsr/tck/ReflectionTest.java Mon Jan 07 18:40:20 2013 +0100 @@ -61,12 +61,12 @@ } @Compare public String cannotCallNonStaticMethodWithNull() throws Exception { - try { - StaticUse.class.getMethod("instanceMethod").invoke(null); - return "should not happen"; - } catch (Exception ex) { - return ex.getClass().getName() + ":" + ex.getMessage(); - } + StaticUse.class.getMethod("instanceMethod").invoke(null); + return "should not happen"; + } + + @Compare public Object voidReturnType() throws Exception { + return StaticUse.class.getMethod("instanceMethod").getReturnType(); } @Compare public String newInstanceFails() throws InstantiationException {