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

Jonathan Gibbons Jonathan.Gibbons at Sun.COM
Fri May 15 16:24:04 PDT 2009


Rémi Forax wrote:
> 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.

I agree. It will. The auto-default only kicks in if no -source is given.

This is a temporary hack to ease use of this compiler until JDK 7 changes to
set -source 7 as the default. Work to make that happen is underway. This
hack provided here will be removed at that time.

-- Jon

>
> 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