-
Bug
-
Resolution: Fixed
-
P3
-
9, 11
-
b23
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8207876 | 12 | Jan Lahoda | P3 | Closed | Fixed | b04 |
JDK-8207423 | 11.0.2 | Jan Lahoda | P3 | Resolved | Fixed | b01 |
JDK-8207638 | 11.0.1 | Jan Lahoda | P3 | Resolved | Fixed | b02 |
This was brought up on the jigsaw-dev list here:
http://mail.openjdk.java.net/pipermail/jigsaw-dev/2018-July/013858.html
mod.two does not read mod.one. There is also code in mod.two with a reference to a public type in one of mod.one's non-exported packages.
To compile these modules individually needs the following:
$ javac -d mods/mod.one $(find src/mod.one -name "*.java")
$ javac -p mods --add-modules mod.one --add-reads mod.two=mod.one --add-exports mod.one/p=mod.two -d mods/mod.two $(find src/mod.two -name "*.java")
but if you drop the `--add-reads` it will still incorrectly succeed.
The equivalent multi-module compilation should be:
$ javac --module-source-path src --add-reads mod.two=mod.one --add-exports mod.one/p=mod.two -d mods $(find src -name "*.java")
but it's possible to drop the --add-reads without the compilation failing.
http://mail.openjdk.java.net/pipermail/jigsaw-dev/2018-July/013858.html
mod.two does not read mod.one. There is also code in mod.two with a reference to a public type in one of mod.one's non-exported packages.
To compile these modules individually needs the following:
$ javac -d mods/mod.one $(find src/mod.one -name "*.java")
$ javac -p mods --add-modules mod.one --add-reads mod.two=mod.one --add-exports mod.one/p=mod.two -d mods/mod.two $(find src/mod.two -name "*.java")
but if you drop the `--add-reads` it will still incorrectly succeed.
The equivalent multi-module compilation should be:
$ javac --module-source-path src --add-reads mod.two=mod.one --add-exports mod.one/p=mod.two -d mods $(find src -name "*.java")
but it's possible to drop the --add-reads without the compilation failing.
- backported by
-
JDK-8207423 Compilation succeeds without checking readability when --add-exports used
-
- Resolved
-
-
JDK-8207638 Compilation succeeds without checking readability when --add-exports used
-
- Resolved
-
-
JDK-8207876 Compilation succeeds without checking readability when --add-exports used
-
- Closed
-
- csr for
-
JDK-8207175 Compilation succeeds without checking readability when --add-exports used
-
- Closed
-
There are no Sub-Tasks for this issue.