-encoding and -source in module-info.java
Alex Buckley
alex.buckley at oracle.com
Mon Jan 30 12:04:39 PST 2012
The JLS is not going to define syntax for a 'source' declaration and
then leave it up to compilers to interpret. It is bad enough that the
JLS defers to "host system" for resolving dependences, and that will be
fixed with a standard module system configured from the language. We're
not going to take two steps forward, then one step back.
The idea of explicit source levels _in the language_ comes up every few
years. I assume people want to use it as a backdoor way of removing
language features. But that is off-topic for this list.
On 1/30/2012 8:53 AM, Reinier Zwitserloot wrote:
> It might be a good idea to write a sister specification which lists minimum
> legal compiler switches and defines what a compiler is supposed to do with
> various meta-information. This specification should go into classpath,
> sourcepath, warning levels for -Xlint (and push -Xlint out of -X territory.
Sounds good. Please discuss further on compiler-dev, not jigsaw-dev.
Alex
More information about the jigsaw-dev
mailing list