On 02/01/2018 17:07, Tom De Wolf wrote:
:

What I don't understand is the reasoning why the module.getDescription().version() then returns a version for an automatic module like sprint.core? it is not an explicit module on which javac can do its magic, so where is that version information stored when there is no module-info?
The module version is derived from the name of the JAR file. If the JAR file is named spring-core-5.0.0.M1.jar then the module version will be "5.0.0.M1". All the details are in the ModuleFinder spec. javac doesn't derive a module version so there isn't a version string to record at compile-time.

-Alan

Reply via email to