-encoding and -source in module-info.java
Jesse Glick
jesse.glick at oracle.com
Wed Jan 25 07:14:25 PST 2012
On 01/24/2012 11:31 PM, Neal Gafter wrote:
> The compiler is required to obey the platform specifications, which includes the language spec.
...and _previous_ language specs.
> If "source 1.8" is illegal, then it must be rejected. And therefore a
> source file written for the previous version of the language "source 1.8" is not legal in the latest version of the language.
Yes, but it is legal in the previous version of the language, so javac from JDK 9 would compile the module without complaints as if you had passed -source 1.8 on the
command line. You just would not be able to use reified generics (or whatever source 1.9 brings you) in that module.
More information about the jigsaw-dev
mailing list