nashorn/src/jdk.scripting.nashorn/share/classes/jdk/internal/dynalink/linker/LinkerServices.java
equal
deleted
inserted
replaced
183 public Comparison compareConversion(Class<?> sourceType, Class<?> targetType1, Class<?> targetType2); |
183 public Comparison compareConversion(Class<?> sourceType, Class<?> targetType1, Class<?> targetType2); |
184 |
184 |
185 /** |
185 /** |
186 * Modifies the method handle so that any parameters that can receive potentially internal language runtime objects |
186 * Modifies the method handle so that any parameters that can receive potentially internal language runtime objects |
187 * will have a filter added on them to prevent them from escaping, potentially by wrapping them. |
187 * will have a filter added on them to prevent them from escaping, potentially by wrapping them. |
188 * It can also potentially add an unwrapping filter to the return value. |
188 * It can also potentially add an unwrapping filter to the return value. Basically transforms the method |
|
189 * handle using the transformer configured by {@link DynamicLinkerFactory#setInternalObjectsFilter(MethodHandleTransformer)}. |
189 * @param target the target method handle |
190 * @param target the target method handle |
190 * @return a method handle with parameters and/or return type potentially filtered for wrapping and unwrapping. |
191 * @return a method handle with parameters and/or return type potentially filtered for wrapping and unwrapping. |
191 */ |
192 */ |
192 public MethodHandle filterInternalObjects(final MethodHandle target); |
193 public MethodHandle filterInternalObjects(final MethodHandle target); |
193 } |
194 } |