src/share/classes/java/lang/invoke/SimpleMethodHandle.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File jdk Cdiff src/share/classes/java/lang/invoke/SimpleMethodHandle.java

src/share/classes/java/lang/invoke/SimpleMethodHandle.java

Print this page
rev 9490 : 8037210: Get rid of char-based descriptions 'J' of basic types
Reviewed-by: ?

*** 24,34 **** */ package java.lang.invoke; import static java.lang.invoke.LambdaForm.*; ! import static java.lang.invoke.MethodHandleNatives.Constants.*; /** * A method handle whose behavior is determined only by its LambdaForm. * @author jrose */ --- 24,34 ---- */ package java.lang.invoke; import static java.lang.invoke.LambdaForm.*; ! import static java.lang.invoke.LambdaForm.BasicType.*; /** * A method handle whose behavior is determined only by its LambdaForm. * @author jrose */
*** 40,50 **** /*non-public*/ static SimpleMethodHandle make(MethodType type, LambdaForm form) { return new SimpleMethodHandle(type, form); } @Override ! MethodHandle bindArgument(int pos, char basicType, Object value) { MethodType type2 = type().dropParameterTypes(pos, pos+1); LambdaForm form2 = internalForm().bind(1+pos, BoundMethodHandle.SpeciesData.EMPTY); return BoundMethodHandle.bindSingle(type2, form2, basicType, value); } --- 40,50 ---- /*non-public*/ static SimpleMethodHandle make(MethodType type, LambdaForm form) { return new SimpleMethodHandle(type, form); } @Override ! MethodHandle bindArgument(int pos, BasicType basicType, Object value) { MethodType type2 = type().dropParameterTypes(pos, pos+1); LambdaForm form2 = internalForm().bind(1+pos, BoundMethodHandle.SpeciesData.EMPTY); return BoundMethodHandle.bindSingle(type2, form2, basicType, value); }
src/share/classes/java/lang/invoke/SimpleMethodHandle.java
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File