jduo opened a new pull request, #39012:
URL: https://github.com/apache/arrow/pull/39012
This depends on #39011 .
### Rationale for this change
Allows arrow-memory-netty to work with JPMS tools such as jlink.
### What changes are included in this PR?
- Add module-info.java file for arrow-memory-netty
- Update the surefire command to patch Netty's packages with additional
classes and add permissions for Netty modules to use reflection where needed.
- Restructure tests in memory-buffer-netty-patch to not be in the
io.netty.buffer package.
### Are these changes tested?
Yes, with existing tests.
### Are there any user-facing changes?
Users can now use arrow-memory-netty as a module. Users will need to add
--add-opens java.base/jdk.internal.misc=io.netty.common
--patch-module=io.netty.buffer=${project.basedir}/../memory-netty-buffer-patch/target/arrow-memory-netty-buffer-patch-${project.version}.jar
--add-opens=java.base/java.nio=org.apache.arrow.memory.core,io.netty.common,ALL-UNNAMED
to the command line (depending on where the arrow-memory-netty-buffer-patch
JAR is located).
**This PR includes breaking changes to public APIs.**
Users will need to modify their java commands as described above.
--
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]