Skip to content
Permalink
Browse files
IGNITE-16940 Make the project build on Java 18 (#803)
  • Loading branch information
rpuch committed May 12, 2022
1 parent e461879 commit 62c80ec9f609fc8956d9c5585560b9271d4166bd
Showing 5 changed files with 5 additions and 2 deletions.
@@ -41,6 +41,7 @@
--add-opens java.base/java.lang.reflect=ALL-UNNAMED
--add-opens java.base/java.io=ALL-UNNAMED
--add-opens java.base/java.nio=ALL-UNNAMED
--add-opens java.base/java.math=ALL-UNNAMED
--add-opens java.base/java.util=ALL-UNNAMED
--add-opens java.base/jdk.internal.misc=ALL-UNNAMED
-Dio.netty.tryReflectionSetAccessible=true
@@ -119,6 +119,7 @@ public RunningNode start(
addAddOpens(cmdArgs, "java.base/java.lang.reflect=ALL-UNNAMED");
addAddOpens(cmdArgs, "java.base/java.io=ALL-UNNAMED");
addAddOpens(cmdArgs, "java.base/java.nio=ALL-UNNAMED");
addAddOpens(cmdArgs, "java.base/java.math=ALL-UNNAMED");
addAddOpens(cmdArgs, "java.base/java.util=ALL-UNNAMED");
addAddOpens(cmdArgs, "java.base/jdk.internal.misc=ALL-UNNAMED");

@@ -609,7 +609,7 @@ public interface GetFieldReader {
* @return a value extracted from GetField
* @throws IOException if something goes wrong
*/
Object read(GetField getField) throws IOException;
Object read(GetField getField) throws IOException, ClassNotFoundException;
}

private static class ExtraFieldForGetField {
@@ -763,7 +763,7 @@ private void readObject(ObjectInputStream ois) throws IOException, ClassNotFound
}

private interface FieldFiller {
void fillWith(ObjectInputStream.GetField getField, WithReadFields target) throws IOException;
void fillWith(ObjectInputStream.GetField getField, WithReadFields target) throws IOException, ClassNotFoundException;
}

private static class WithReadFields implements Serializable {
@@ -123,6 +123,7 @@
--add-opens java.base/java.lang.reflect=ALL-UNNAMED
--add-opens java.base/java.io=ALL-UNNAMED
--add-opens java.base/java.nio=ALL-UNNAMED
--add-opens java.base/java.math=ALL-UNNAMED
--add-opens java.base/java.util=ALL-UNNAMED
--add-opens java.base/jdk.internal.misc=ALL-UNNAMED
-Dio.netty.tryReflectionSetAccessible=true

0 comments on commit 62c80ec

Please sign in to comment.