Integrated: 8335060: ClassCastException after JDK-8294960
Adam Sotona
asotona at openjdk.org
Mon Jul 1 11:54:26 UTC 2024
On Wed, 26 Jun 2024 06:53:28 GMT, Adam Sotona <asotona at openjdk.org> wrote:
> Conversion of `java.lang.invoke` package to Class-File API is failing to execute method handles with specific type conversion requirements. Root cause is in the new `TypeConvertingMethodAdapter::primitiveTypeKindFromClass` implementation. Original code has been matching the types by hash code and it mistakenly appeared to be matching the primitive types.
>
> This patch fixes `TypeConvertingMethodAdapter::primitiveTypeKindFromClass` and adds tests to better cover `TypeConvertingMethodAdapter` functionality.
>
> Please review.
>
> Thanks,
> Adam
This pull request has now been integrated.
Changeset: 3ca2bcd4
Author: Adam Sotona <asotona at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/3ca2bcd402042791d7460dd79ee16a3f88436b3e
Stats: 806 lines in 2 files changed: 798 ins; 0 del; 8 mod
8335060: ClassCastException after JDK-8294960
Reviewed-by: liach, jpai
-------------
PR: https://git.openjdk.org/jdk/pull/19898
More information about the core-libs-dev
mailing list