Lines Matching refs:Sub
54 static abstract class Sub extends Super { }
56 MethodHandle m1 = lookup().findVirtual(Sub.class, "m1", methodType(void.class));
58 MethodHandle m2 = lookup().findVirtual(Sub.class, "m2", methodType(void.class));
60 MethodHandle f2 = lookup().findGetter(Sub.class, "f2", int.class);
62 MethodHandle f2s = lookup().findSetter(Sub.class, "f2", int.class);
64 MethodHandle chc = lookup().findVirtual(Sub.class, "hashCode", methodType(int.class));
68 assertEquals(Sub.class, m1.type().parameterType(0));
69 assertEquals(Sub.class, m2.type().parameterType(0));
70 assertEquals(Sub.class, f2.type().parameterType(0));
71 assertEquals(Sub.class, f2s.type().parameterType(0));
72 assertEquals(Sub.class, chc.type().parameterType(0));
74 // test the MHs on a concrete version of Sub
75 class C extends Sub {
87 private static void testConcrete(Sub s,