Non-public entry point class fails compilation of module-info.java
jonathan.gibbons at oracle.com
Fri Apr 6 07:02:21 PDT 2012
The error from javac is incorrect. Thanks for the report.
On 04/06/2012 05:47 AM, Sahoo wrote:
> javac -d modules/ -modulepath src:modules `find . -name "*.java"`
> ./src/m2/module-info.java:3: error: Main is not public in p3; cannot
> be accessed from outside package
> class p3.Main;
> 1 error
>  says this is allowed. Is this yet to be implemented feature?
> Secondly, does module-info.class belong to any package? javap shows
> the class name as "m.module-info" for a module-info.class generated
> for module "m."
>  http://openjdk.java.net/projects/jigsaw/doc/lang-vm.html#jigsaw-1
More information about the jigsaw-dev