> Hi, > > This patch adds a `dropReturn` combinator to `MethodHandles` that can be used > to create a new method handle that drops the return value, from a given > method handle. Similar to the following code: > > MethodHandle target = ...; > Class<?> targetReturnType = target.type().returnType(); > if (targetReturnType != void.class) > target = filterReturnValue(target, empty(methodType(void.class, > targetReturnType))); > // use target > > But as a short-hand. > > Thanks, > Jorn
Jorn Vernee has updated the pull request incrementally with one additional commit since the last revision: Fix bug id referenced in test ------------- Changes: - all: https://git.openjdk.java.net/jdk/pull/866/files - new: https://git.openjdk.java.net/jdk/pull/866/files/22ae65d0..2793ac1b Webrevs: - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=866&range=01 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=866&range=00-01 Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod Patch: https://git.openjdk.java.net/jdk/pull/866.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/866/head:pull/866 PR: https://git.openjdk.java.net/jdk/pull/866