chesnokoff commented on code in PR #13469:
URL: https://github.com/apache/ignite/pull/13469#discussion_r3773214464


##########
modules/core/src/main/java/org/apache/ignite/plugin/security/SecurityBasicPermissionSet.java:
##########
@@ -215,7 +215,7 @@ private void readObject(ObjectInputStream in) throws 
IOException, ClassNotFoundE
     private static Map<String, EnumSet<SecurityPermission>> readPermissions(
         ObjectInputStream.GetField fields,
         String name
-    ) throws IOException {
+    ) throws IOException, ClassNotFoundException {
         return normalizeResourcePermissions((Map<String, ? extends 
Collection<SecurityPermission>>)fields.get(name, null));

Review Comment:
   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 is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to