On 7/3/17 6:36 AM, Sander Mak wrote:
On 3 Jul 2017, at 15:23, Alexander Udalov 
<alexander.uda...@jetbrains.com<mailto:alexander.uda...@jetbrains.com>> wrote:

  But in circumstances where the destination
directory could be different for class files compiled by Java and
non-Java, I see no way to make the Java compiler read the class files
compiled by the non-Java compiler. If they're passed on the classpath
(as they are currently on Java 8 and earlier), the classes there are
not accessible in Java because the named module cannot read the
unnamed module. If they're passed on the module path, they would be
loaded in another module, which is incorrect because semantically it's
the same module.

Have you tried using `--patch-module` during compilation of the Java sources 
(as described in http://openjdk.java.net/jeps/261)? Not sure if it works with 
class files in the patch directory as well, but it sounds like it could address 
your usecase.


Sander

Yes, --patch-module should be able to help.

-- Jon

Reply via email to