[
https://issues.apache.org/jira/browse/IGNITE-28975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18104363#comment-18104363
]
Mikhail Petrov commented on IGNITE-28975:
-----------------------------------------
[~chesnokoff] Thank you for the contribution.
> JDK 21 compilation fails in SecurityBasicPermissionSet due to unhandled
> ClassNotFoundException
> ----------------------------------------------------------------------------------------------
>
> Key: IGNITE-28975
> URL: https://issues.apache.org/jira/browse/IGNITE-28975
> Project: Ignite
> Issue Type: Bug
> Reporter: Aleksandr Chesnokov
> Assignee: Aleksandr Chesnokov
> Priority: Major
> Labels: ise, jdk21
> Fix For: 2.19
>
> Attachments: _Apache_Ignite_2.x_Tests_Build_29005.log
>
> Time Spent: 1h
> Remaining Estimate: 0h
>
> {noformat}
> [06:41:13]W: [Step 4/12] [ERROR]
> /data/tcAgent/work/7bc1c54bc719b67c/modules/core/src/main/java/org/apache/ignite/plugin/security/SecurityBasicPermissionSet.java:[219,110]
> unreported exception java.lang.ClassNotFoundException; must be caught or
> declared to be thrown
> {noformat}
> Let's add ClassNotFoundException to method signature
>
> Root cause:
> In JDK 17 ObjectInputStream.GetField#get(String, Object) declared only
> IOException. Since JDK 18, it also declares ClassNotFoundException. That's
> why compilation fails on JDK 21.
>
> https://bugs.openjdk.org/browse/JDK-8276742
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)