Compiling Java 9 (take 2)
Stephan Herrmann
stephan.herrmann at berlin.de
Fri Jan 13 23:52:46 UTC 2017
On 01/08/2017 08:13 PM, Stephan Herrmann wrote:
> [...]
> Lastly, with the interplay of things defined in JLS vs. observability
> which is subject to the host system, I wonder if JLS will at least include
> "recommendations" regarding the structure of directories and compilation
> units. The same holds for "association of a compilation unit to a module".
Speaking of which, I'm confused by these sentences:
7.2:
"The host system is free to decide that a compilation unit containing a module
declaration is not, in fact, associated with the module declared therein."
7.3:
"A modular compilation unit consists of a module declaration, optionally preceded
by import declarations."
"An observable modular compilation unit is associated with the module that it
declares."
If "compilation unit containing a module declaration" and "modular compilation unit"
is the same thing, then it is associated with the module declared therein, and may
at the same time not be associated with it.
What am I missing?
Somehow that paragraph in 7.2 is strangely jumping from "presence of" to
"associated with" and back to "lack of", as if two paragraphs were merged
inadvertently.
Stephan
More information about the jigsaw-dev
mailing list