You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Aleksandr Polovtcev (Jira)" <ji...@apache.org> on 2024/03/01 18:34:00 UTC

[jira] [Commented] (IGNITE-21645) Fix tests extending AbstractPlannerTest on Java 21

    [ https://issues.apache.org/jira/browse/IGNITE-21645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17822681#comment-17822681 ] 

Aleksandr Polovtcev commented on IGNITE-21645:
----------------------------------------------

Looks good!

> Fix tests extending AbstractPlannerTest on Java 21
> --------------------------------------------------
>
>                 Key: IGNITE-21645
>                 URL: https://issues.apache.org/jira/browse/IGNITE-21645
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Roman Puchkovskiy
>            Assignee: Roman Puchkovskiy
>            Priority: Major
>              Labels: ignite-3
>             Fix For: 3.0.0-beta2
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The tests change a final field value. In such a situation, the corresponding IgniteTestUtils method changes the corresponding Field's {{modifiers}} to remove the {{final}} flag from them. The modifiers are changed through a MethodHandle, and on highest Java versions, a MethodHandle of a final Field now throws an UnsupportedOperationException.
> It turns out, this modification of the modifiers is actually not needed on any of the currently LTS Java versions (11, 17, 21), so we can just remove this.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)