1.1 --- a/rt/vmtest/src/test/java/org/apidesign/bck2brwsr/tck/ReflectionTest.java Sun Apr 07 15:24:45 2013 +0200
1.2 +++ b/rt/vmtest/src/test/java/org/apidesign/bck2brwsr/tck/ReflectionTest.java Wed Apr 10 10:08:18 2013 +0200
1.3 @@ -103,6 +103,15 @@
1.4 StaticUse.class.getMethod("instanceMethod").invoke(null);
1.5 return "should not happen";
1.6 }
1.7 +
1.8 + @Compare public String classCastException() {
1.9 + try {
1.10 + Integer i = (Integer)StaticUseSub.getNonNull();
1.11 + return "" + i.intValue();
1.12 + } catch (ClassCastException ex) {
1.13 + return ex.getClass().getName();
1.14 + }
1.15 + }
1.16
1.17 @Compare public String methodThatThrowsException() throws Exception {
1.18 StaticUse.class.getMethod("instanceMethod").invoke(new StaticUse());