rt/emul/compact/src/test/java/org/apidesign/bck2brwsr/tck/ReflectionTest.java
branchReducedStack
changeset 1470 6ab756741111
parent 1376 8e600271bba1
child 1565 8977a022e424
     1.1 --- a/rt/emul/compact/src/test/java/org/apidesign/bck2brwsr/tck/ReflectionTest.java	Mon Oct 21 09:45:09 2013 +0200
     1.2 +++ b/rt/emul/compact/src/test/java/org/apidesign/bck2brwsr/tck/ReflectionTest.java	Mon Feb 17 16:55:44 2014 +0100
     1.3 @@ -250,6 +250,17 @@
     1.4          }
     1.5      }
     1.6      
     1.7 +    @Compare public int callAbst() throws Exception {
     1.8 +        class Impl extends Abst {
     1.9 +            @Override
    1.10 +            public int abst() {
    1.11 +                return 10;
    1.12 +            }
    1.13 +        }
    1.14 +        Abst impl = new Impl();
    1.15 +        return (int) Abst.class.getMethod("abst").invoke(impl);
    1.16 +    }
    1.17 +    
    1.18      @Compare public String componentGetNameForObjectArray() {
    1.19          return (new Object[3]).getClass().getComponentType().getName();
    1.20      }
    1.21 @@ -296,4 +307,7 @@
    1.22          return VMTest.create(ReflectionTest.class);
    1.23      }
    1.24      
    1.25 +    public static abstract class Abst {
    1.26 +        public abstract int abst();
    1.27 +    }
    1.28  }