hg: jigsaw/jigsaw/langtools: TEMP: auto-default -source 7 when module-specific items found on the command line

Rémi Forax forax at univ-mlv.fr
Fri May 15 16:10:21 PDT 2009


jonathan.gibbons at sun.com a écrit :
> Changeset: d9cf7132c862
> Author:    jjg
> Date:      2009-05-15 15:52 -0700
> URL:       http://hg.openjdk.java.net/jigsaw/jigsaw/langtools/rev/d9cf7132c862
>
> TEMP: auto-default -source 7 when module-specific items found on the command line
>
> ! src/share/classes/com/sun/tools/javac/main/Main.java
> ! src/share/classes/com/sun/tools/javac/main/RecognizedOptions.java
>
>   
Jon, auto-default is not a good idea.
The compiler should emit an error saying to use -source 7.

If I compile with -source 1.4, it should compile with -source 1.4.

Auto-stuffs are only obvious for the developer that write that code,
not for its users.

regards,
Rémi



More information about the jigsaw-dev mailing list