Integrated: 8338406: BytecodeHelpers using wrong bootstrap method descriptor for condy

Chen Liang liach at openjdk.org
Thu Aug 15 17:52:59 UTC 2024


On Wed, 14 Aug 2024 17:07:21 GMT, Chen Liang <liach at openjdk.org> wrote:

> `BytecodeHelpers.handleConstantDescToHandleInfo` is incorrectly using `DirectMethodHandleDesc.invocationType`, which accidentally works for static bootstrap methods so it's discovered only now with more extensive testing from bytebuddy. Cleaned up by reusing the correct `handleDescToHandleInfo` instead. Thanks to @raphw for the report.
> 
> For now, a workaround can be instead of using `DynamicConstantDesc`, translate to `ConstantDynamicEntry` in user applications.

This pull request has now been integrated.

Changeset: ace49651
Author:    Chen Liang <liach at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/ace496515f4f91e802a51cec43d387eed61bd935
Stats:     194 lines in 3 files changed: 105 ins; 87 del; 2 mod

8338406: BytecodeHelpers using wrong bootstrap method descriptor for condy

Reviewed-by: asotona

-------------

PR: https://git.openjdk.org/jdk/pull/20586


More information about the core-libs-dev mailing list