On 1/13/2017 3:52 PM, Stephan Herrmann wrote:
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."
Should be "an observable compilation unit containing a ...". Per 7.3,
once you've decided a compilation unit is observable, then if it
contains a module declaration you're required to associate the c.u. with
the declared module and not with (say) java.base. And if the c.u. is not
observable then associated-with is moot.
Alex
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?