src/share/classes/java/lang/invoke/MethodHandles.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
*** old/src/share/classes/java/lang/invoke/MethodHandles.java Wed Jul 16 20:33:27 2014
--- new/src/share/classes/java/lang/invoke/MethodHandles.java Wed Jul 16 20:33:26 2014
*** 2018,2028 ****
--- 2018,2028 ----
public static
MethodHandle explicitCastArguments(MethodHandle target, MethodType newType) {
if (!target.type().isCastableTo(newType)) {
throw new WrongMethodTypeException("cannot explicitly cast "+target+" to "+newType);
}
! return MethodHandleImpl.makePairwiseConvert(target, newType, 2);
! return MethodHandleImpl.makePairwiseConvert(target, newType, false);
}
/**
* Produces a method handle which adapts the calling sequence of the
* given method handle to a new type, by reordering the arguments.
src/share/classes/java/lang/invoke/MethodHandles.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File