module name convention

Remi Forax forax at univ-mlv.fr
Sat Sep 19 17:02:15 UTC 2015


Mani from AdoptAJSR has a very good question at the end of this document:
  https://docs.google.com/document/d/1KlumN74IGt-TU-Md3Fn5h4sXHa75RApWNLszUTVp-DE/edit

Quote:
  "Namespace for modules overlap with that of packages - can be confusing after looking at a lot of module descriptors.
   When exporting, excluding, using, etc… of modules we do not say this module is dependent on that,
   but modules dependencies are resolved by the resolving which packages they are dependent on (uses this package, exports that package).

   And package names look similar to or can look the same as module names, although they are different concepts."

Both Eclipse and Maven use package name or at least package prefix as convention to name module and as Mani said it really confusing when you write a module-info file.

Given that the name of the JDK modules doesn't respect that convention but still use '.' to separate the different components,
I wonder if we should not try to come with a convention for module name that allow to easily disambiguate between package name and module name.
By example,
  java_base,
  java-base,
  java~base ...

Obviously the other solution is to prefix a name by "package" or "module".

Rémi





More information about the jpms-spec-experts mailing list