Commits


david dali susanibar arce authored and David Li committed 760ad200674
ARROW-15755: [Java] Support Java 17 Changes needed to support JDK17: - There are some [errorprone](https://errorprone.info/docs/installation) suppress warnings needed to be able to continue using JSE17 with JSE1.8 source/target. This need to be migrated to new JSE X base on [ML discussion](https://lists.apache.org/thread/phpgpydtt3yrgnncdyv4qdq1gf02s0yj). - JSE11+ is modular for that reason was needed to add `--add-exports` and `--add-opens` - The --add-exports option allows code in the target module to access types in the named package of the source module if the target module reads the source module. - If you have to allow code on the class path to do deep reflection to access nonpublic members, then use the --add-opens runtime option. - To be able to running unit test was needed to configure `maven-surefire-plugin` with `<argLine>--add-opens=java.base/java.nio=ALL-UNNAMED</argLine>` Closes #12941 from davisusanibar/java-ARROW-15755 Lead-authored-by: david dali susanibar arce <davi.sarces@gmail.com> Co-authored-by: David Li <li.davidm96@gmail.com> Signed-off-by: David Li <li.davidm96@gmail.com>