Skip to content

Commit

Permalink
JDK 22
Browse files Browse the repository at this point in the history
  • Loading branch information
danepitkin committed Apr 5, 2024
1 parent 83359d6 commit 04a77f2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ jobs:
strategy:
fail-fast: false
matrix:
jdk: [8, 11, 17, 21]
maven: [3.9.5]
jdk: [8, 11, 17, 21, 22]
maven: [3.9.6]
image: [java]
env:
JDK: ${{ matrix.jdk }}
Expand Down
10 changes: 5 additions & 5 deletions docs/source/java/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ Java modules are regularly built and tested on macOS and Linux distributions.
Java Compatibility
==================

Java modules are compatible with JDK 8 and above.
Currently, JDK 8, 11, 17, and 21 are tested in CI.
Java modules are compatible with JDK 8 and above. Currently, JDK versions
8, 11, 17, and 21 are tested in CI. The latest JDK is also tested in CI.

When using Java 9 or later, some JDK internals must be exposed by
adding ``--add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED`` to the ``java`` command:
Expand Down Expand Up @@ -61,7 +61,7 @@ Modifying the command above for Flight:
$ env _JAVA_OPTIONS="--add-reads=org.apache.arrow.flight.core=ALL-UNNAMED --add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED" java -jar ...
Otherwise, you may see errors like ``java.lang.IllegalAccessError: superclass access check failed: class
org.apache.arrow.flight.ArrowMessage$ArrowBufRetainingCompositeByteBuf (in module org.apache.arrow.flight.core)
org.apache.arrow.flight.ArrowMessage$ArrowBufRetainingCompositeByteBuf (in module org.apache.arrow.flight.core)
cannot access class io.netty.buffer.CompositeByteBuf (in unnamed module ...) because module
org.apache.arrow.flight.core does not read unnamed module ...
Expand All @@ -74,8 +74,8 @@ Modifying the command above for arrow-memory:
# Indirectly via environment variables
$ env _JAVA_OPTIONS="--add-opens=java.base/java.nio=org.apache.arrow.dataset,org.apache.arrow.memory.core,ALL-UNNAMED" java -jar ...
Otherwise you may see errors such as ``java.lang.RuntimeException: java.lang.reflect.InaccessibleObjectException:
Unable to make static void java.nio.Bits.reserveMemory(long,long) accessible: module
Otherwise you may see errors such as ``java.lang.RuntimeException: java.lang.reflect.InaccessibleObjectException:
Unable to make static void java.nio.Bits.reserveMemory(long,long) accessible: module
java.base does not "opens java.nio" to module org.apache.arrow.dataset``

If using Maven and Surefire for unit testing, :ref:`this argument must
Expand Down

0 comments on commit 04a77f2

Please sign in to comment.