Re: [Question] Accessibility of each modules

2017-09-05 Thread KUBOTA Yuji
2017-09-05 22:16 GMT+09:00 Alan Bateman : > The issue here is that org.astro is not resolved because no module requires > org.astro. If you add `--add-modules org.astro` to the command line then it > will ensure that this module is resolved and you should see that > com.greetings reads it. Thank y

Re: [Question] Accessibility of each modules

2017-09-05 Thread Alan Bateman
On 05/09/2017 14:08, KUBOTA Yuji wrote: My following example program shows that automatic module can't read exported package by explicit module. $ /jdk-9/bin/jar -d --file mlibs/org.astro.jar org.astro jar:file:///jigsaw-sample/mlibs/org.astro.jar/!module-info.class exports org.astro requires

Re: [Question] Accessibility of each modules

2017-09-05 Thread KUBOTA Yuji
Hi Alan, Thank you very much for your quickly and detailed explanation! I think that your explanation make sense except accessibility of automatic module. My following example program shows that automatic module can't read exported package by explicit module. $ /jdk-9/bin/jar -d --file mlibs/org

Re: [Question] Accessibility of each modules

2017-09-05 Thread Alan Bateman
On 05/09/2017 12:01, KUBOTA Yuji wrote: Hi all, I have a question about accessibility of each modules: unnamed, automatic and named modules. * unnamed: the JAR compiled by java 8 and speficied by --class-path. * automatic: the JAR compiled by Java 8 and specified by --module-path. * named: the m

[Question] Accessibility of each modules

2017-09-05 Thread KUBOTA Yuji
Hi all, I have a question about accessibility of each modules: unnamed, automatic and named modules. * unnamed: the JAR compiled by java 8 and speficied by --class-path. * automatic: the JAR compiled by Java 8 and specified by --module-path. * named: the modular JAR. I ran quick-start's example p