On Wed, 3 Feb 2021 17:35:30 GMT, Johannes Kuhn <github.com+652983+dasbr...@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