RFR: 8013527: calling MethodHandles.lookup on itself leads to errors [v2]
Mandy Chung
mchung at openjdk.java.net
Wed Feb 3 18:40:15 UTC 2021
On Wed, 3 Feb 2021 17:35:30 GMT, Johannes Kuhn <github.com+652983+DasBrain at openjdk.org> wrote:
>> Last night, I had a second thought that the fix for these two JBS issues does not need the class data. It's more for a future use. I plan to revise it and drop class data in this fix anyway.
>
> You are right, got it confused with the future use.
>
> With this fix, MethodHandle -> Method.invoke -> MethodHandles.lookup() will still return a lookup on the injected invoker.
> I somehow missed that this is not part of the fix, but for the future use.
`MethodHandle -> Method.invoke -> MethodHandles.lookup() ` is a corner case that can be fixed easily using the class data approach. See the new commit.
-------------
PR: https://git.openjdk.java.net/jdk/pull/2367
More information about the core-libs-dev
mailing list