Searched refs:intfc (Results 1 - 2 of 2) sorted by relevance

/openjdk7/jdk/src/share/classes/java/lang/invoke/
H A DMethodHandleProxies.java112 * @param intfc the desired type of the wrapper, a single-method interface
115 * @throws IllegalArgumentException if the {@code intfc} is not a
143 <T> T asInterfaceInstance(final Class<T> intfc, final MethodHandle target) { argument
144 if (!intfc.isInterface() || !Modifier.isPublic(intfc.getModifiers()))
145 throw new IllegalArgumentException("not a public interface: "+intfc.getName());
150 ReflectUtil.checkProxyPackageAccess(ccl, intfc);
155 ClassLoader proxyLoader = intfc.getClassLoader();
160 final Method[] methods = getSingleNameMethods(intfc);
162 throw new IllegalArgumentException("not a single-method interface: "+intfc
302 getSingleNameMethods(Class<?> intfc) argument
[all...]
/openjdk7/jdk/test/java/lang/invoke/
H A DMethodHandlesTest.java2789 for (Class<?> intfc : new Class<?>[] { Runnable.class /*arity 0*/,
2792 if (verbosity > 2) System.out.println(intfc.getName());
2795 MethodHandleProxies.asInterfaceInstance(intfc, varargsArray(badArity));
2796 assertTrue("Failed to throw on "+intfc.getName(), false);
2798 if (verbosity > 2) System.out.println(intfc.getSimpleName()+": "+ex);

Completed in 41 milliseconds