jduo commented on PR #13072:
URL: https://github.com/apache/arrow/pull/13072#issuecomment-1817260042

   Hi all,
   
   I'm investigating this now. It seems grpc recently got properly modularized 
in 1.57 (https://github.com/grpc/grpc-java/issues/3522) so we can rework the 
Flight modules.
   
   As far as compiling the module-info.java files:
   - There is a [Gradle plugin](https://github.com/Glavo/module-info-compiler) 
that can do a purely syntactic compilation of a module-info.java file into 
byte-code. It does not require rebuilding classes so I don't think we'll run 
into the Unsafe issues here. It will need to be rebuilt as a Maven plugin. This 
plugin does not handle annotations though, which does require classpath walking.
   - A multi-module build using toolchans is suggested 
[here](https://stackoverflow.com/questions/53560584/java9-release-8-with-internal-packages-e-g-sun-misc-unsafe)
 for dealing with this problem as well. This might be more reliable since it 
uses official tooling, though it essentially doubles the compilation time 
(since you need to compile all source files twice).


-- 
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