mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8298177: Various java.lang.invoke cleanups
8284363: Redundant imports in BoundMethodHandle Reviewed-by: jvernee
This commit is contained in:
parent
6ed36835ec
commit
3de775094d
11 changed files with 80 additions and 375 deletions
|
@ -600,7 +600,7 @@ sealed class DirectMethodHandle extends MethodHandle {
|
|||
}
|
||||
|
||||
Object checkCast(Object obj) {
|
||||
return member.getReturnType().cast(obj);
|
||||
return member.getMethodType().returnType().cast(obj);
|
||||
}
|
||||
|
||||
// Caching machinery for field accessors:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue