Compilation feedback and version question
jonathan.gibbons at oracle.com
Wed Oct 28 23:40:53 UTC 2015
On 10/28/2015 01:50 PM, Stephen Colebourne wrote:
> Finally, I had my module-info.java in the wrong folder initially (at
> the org.joda.convert package level, rather than the root). However, it
> got picked up and compiled into the root of the output classes folder.
> I guess this is expected, but I found it confusing. It might be better
> to insist that module-info.java must be at the root, and stop javac if
> it is found in another folder.
Maybe it is surprising, but right now, if you list all the necessary
files on the command line, javac does not impose any requirement on the
organization of any of those files. This applies to plain-old-.java
files as well as module-info.java files.
The requirements for organizing source files only come into play when
javac tries to look up files on the source path.
More information about the jigsaw-dev