javac/jmod discrepency for modular source compilation/install

Paul Sandoz paul.sandoz at oracle.com
Thu May 3 09:31:46 PDT 2012


Hi,

javac will compile a module in modular source layout with a directory name that is different from the module name declared in module-info.java.

jmod is not happy:

  $ jmod install -L lib modules foobar
  Exception in thread "main" java.lang.Error: modules/foobar/module-info.class is for foo, not foobar

Which is correct? Should jmod be a little more permissive? Or should javac be more restrictive?

Paul.


More information about the jigsaw-dev mailing list