[
https://issues.apache.org/jira/browse/IGNITE-21645?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Roman Puchkovskiy updated IGNITE-21645:
---------------------------------------
Description:
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.
> 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
>
>
> 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)