java - JDK compiler fails for "open" module -
using current jdk build 9-ea+143's javax.tools.javacompiler tool, can compile simple (empty) example module without error:
module com.foo.bar { }   if add open in:
open module com.foo.bar { }   ...the compiler error reads:
/module-info.java:1: error: class, interface, or enum expected open module com.foo.bar { ^   syntax based on http://cr.openjdk.java.net/~mr/jigsaw/spec/lang-vm.html
is current jdk 9 build not up-to-date spec or missing option passed javacompiler?
to newest jigsaw features, need use the jigsaw ea build (as opposed the regular ea builds). created github repo exploring open packages , modules (to make reflection work) , wrote it - works on b146.
Comments
Post a Comment