Searched refs:WrongMethodTypeException (Results 1 - 13 of 13) sorted by relevance

/openjdk7/jdk/src/share/classes/java/lang/invoke/
H A DWrongMethodTypeException.java43 public class WrongMethodTypeException extends RuntimeException { class in inherits:RuntimeException
47 * Constructs a {@code WrongMethodTypeException} with no detail message.
49 public WrongMethodTypeException() { method in class:WrongMethodTypeException
54 * Constructs a {@code WrongMethodTypeException} with the specified
59 public WrongMethodTypeException(String s) { method in class:WrongMethodTypeException
64 * Constructs a {@code WrongMethodTypeException} with the specified
71 /*non-public*/ WrongMethodTypeException(String s, Throwable cause) { method in class:WrongMethodTypeException
76 * Constructs a {@code WrongMethodTypeException} with the specified
82 /*non-public*/ WrongMethodTypeException(Throwable cause) { method in class:WrongMethodTypeException
H A DCallSite.java123 * @throws WrongMethodTypeException if the hook cannot be invoked on the required arguments,
177 * @throws WrongMethodTypeException if the proposed new target
193 private static WrongMethodTypeException wrongTargetType(MethodHandle target, MethodType type) {
194 return new WrongMethodTypeException(String.valueOf(target)+" should be of type "+type);
292 throw new WrongMethodTypeException("wrong type: "+site.getTarget());
H A DInvokers.java347 WrongMethodTypeException newWrongMethodTypeException(MethodType actual, MethodType expected) {
349 return new WrongMethodTypeException("expected "+expected+" but found "+actual);
H A DMethodHandle.java159 * But if a match fails, the JVM will throw a {@link WrongMethodTypeException},
165 * a dynamic {@code WrongMethodTypeException}
460 * @throws WrongMethodTypeException if the target's type is not identical with the caller's symbolic type descriptor
494 * @throws WrongMethodTypeException if the target's type cannot be adjusted to the caller's symbolic type descriptor
502 * Type mismatches will not throw {@code WrongMethodTypeException}, but could crash the JVM.
586 * @throws WrongMethodTypeException if the target's type cannot be adjusted to take the given number of {@code Object} arguments
617 * @throws WrongMethodTypeException if the target's type cannot be adjusted to take the given number of {@code Object} arguments
719 * @throws WrongMethodTypeException if the conversion cannot be made
724 throw new WrongMethodTypeException("cannot convert "+this+" to "+newType);
803 * @throws WrongMethodTypeException i
[all...]
H A DMethodHandleImpl.java359 throw new WrongMethodTypeException("cannot build collector", ex);
475 throw new WrongMethodTypeException("Array is not of length "+n);
H A DMethodHandles.java1534 * @throws WrongMethodTypeException if the conversion cannot be made
1540 throw new WrongMethodTypeException("cannot explicitly cast "+target+" to "+newType);
/openjdk7/hotspot/test/compiler/7088020/
H A DTest7088020.java48 } catch (WrongMethodTypeException wmt) {
54 } catch (WrongMethodTypeException wmt) {
60 } catch (WrongMethodTypeException wmt) {
66 } catch (WrongMethodTypeException wmt) {
73 } catch (WrongMethodTypeException wmt) {
/openjdk7/jdk/test/java/lang/invoke/
H A DJavaDocExamplesTest.java382 assert(caught instanceof WrongMethodTypeException);
404 assert(caught instanceof WrongMethodTypeException);
419 assert(caught instanceof WrongMethodTypeException);
H A DInvokeGenericTest.java415 } catch (WrongMethodTypeException ex) {
H A DPermuteArgsTest.java196 } catch (WrongMethodTypeException | IllegalArgumentException ex) {
H A DBigArityTest.java37 import java.lang.invoke.WrongMethodTypeException;
101 } catch (IllegalArgumentException | WrongMethodTypeException ex) {
245 } catch (ClassCastException | WrongMethodTypeException ex) {
H A DMethodHandlesTest.java1488 } catch (WrongMethodTypeException ex) {
2797 } catch (WrongMethodTypeException ex) {
2799 // Runnable: java.lang.invoke.WrongMethodTypeException:
2801 // Fooable: java.lang.invoke.WrongMethodTypeException:
/openjdk7/jdk/test/java/lang/invoke/6998541/
H A DTest6998541.java153 } catch (WrongMethodTypeException ex) {

Completed in 316 milliseconds