jdk/src/share/classes/java/dyn/WrongMethodTypeException.java
changeset 8346 3b891698c4ec
parent 6848 1a454f5b7209
child 8821 2836ee97ee27
equal deleted inserted replaced
8345:9e2483e6cfab 8346:3b891698c4ec
    27 
    27 
    28 /**
    28 /**
    29  * Thrown to indicate that code has attempted to call a method handle
    29  * Thrown to indicate that code has attempted to call a method handle
    30  * via the wrong method type.  As with the bytecode representation of
    30  * via the wrong method type.  As with the bytecode representation of
    31  * normal Java method calls, method handle calls are strongly typed
    31  * normal Java method calls, method handle calls are strongly typed
    32  * to a specific signature associated with a call site.
    32  * to a specific type descriptor associated with a call site.
    33  * <p>
    33  * <p>
    34  * This exception may also be thrown when two method handles are
    34  * This exception may also be thrown when two method handles are
    35  * composed, and the system detects that their types cannot be
    35  * composed, and the system detects that their types cannot be
    36  * matched up correctly.  This amounts to an early evaluation
    36  * matched up correctly.  This amounts to an early evaluation
    37  * of the type mismatch, at method handle construction time,
    37  * of the type mismatch, at method handle construction time,