Exporting a package with no Java sources
Sander Mak
sander.mak at luminis.eu
Mon Jul 3 13:36:48 UTC 2017
On 3 Jul 2017, at 15:23, Alexander Udalov <alexander.udalov at jetbrains.com<mailto:alexander.udalov at 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
More information about the jigsaw-dev
mailing list