asfimport opened a new issue, #379:
URL: https://github.com/apache/arrow-java/issues/379

   In Java 9/9+, within following module-info.java definition the build will 
fail by error:
   
   ```Java
   
   module my.app {
     exports my.app;
   
     requires arrow.memory.core;
     requires arrow.memory.unsafe;
   }
   ```
   
   The error:
   > java: the unnamed module reads package org.apache.arrow.memory from both 
arrow.memory.core and arrow.memory.unsafe
   
   It seems that JPMS requires a package to be read from at most one individual 
module. Ref: 
http://openjdk.java.net/projects/jigsaw/spec/sotms/#the-module-path. If so what 
we may have to do is to conduct a code clean up for our maven modules to make 
sure we don't populate codes in the same package into different libraries.
   
   Also, as a more standardized practice, it's might be an option to put 
entries with name **Automatic-Module-Name** into manifest files to tell 
automatic module system to generate predefined module names rather than parsing 
from jar file name. Ref: 
https://docs.oracle.com/javase/9/docs/api/java/lang/module/ModuleFinder.html#automatic-modules
   
   Note that it's not a goal for this topic to migrate to Java 9/9+.
   
   **Reporter**: [Hongze 
Zhang](https://issues.apache.org/jira/browse/ARROW-12905) / @zhztheplayer
   
   <sub>**Note**: *This issue was originally created as 
[ARROW-12905](https://issues.apache.org/jira/browse/ARROW-12905). Please see 
the [migration documentation](https://github.com/apache/arrow/issues/14542) for 
further details.*</sub>


-- 
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: issues-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to