[PATCH]: javac N with jdk N-1

Joseph Darcy joe.darcy at oracle.com
Fri Apr 4 22:33:26 UTC 2014


On 4/4/2014 2:45 PM, Jonathan Gibbons wrote:
>
> On 04/03/2014 12:51 PM, Liam Miller-Cushon wrote:
>> On Thu, Apr 3, 2014 at 11:30 AM, Remi Forax <forax at univ-mlv.fr 
>> <mailto:forax at univ-mlv.fr>> wrote:
>>
>>     javac9 ??
>>
>>     I was thinking it was about running javac8 with jdk7 and not
>>     javac9 with jdk7,
>>     I have no problem with the former but I'm strongly against the later,
>>     there are several parts of javac that can be simplified by using
>>     lambdas instead of inner classes
>>     so javac9 should not have a dependency on JRE n-2.
>>
>>
>> Sorry, I was unclear - my proposal is still to allow javac N on jdk 
>> N-1, where the specific N I'm interested in is 8. I understand that 
>> the javac 9 code base will start using java 8 language features.
>>
>> The fact that the patch would currently allow javac9 to run on jdk7 
>> is just an artifact of javac9 not yet having diverged very far from 
>> javac8.
>>
>> I guess my patch should target 8u directly, rather than going into 9 
>> and being backported?
>
> Generally, fixes go to 9 first, and are then backported.  I don't see 
> a compelling need to deviate from that policy in this case.
>
> -- Jon
>
>

And I don't think the javac in JDK 9 should be altered to run on top of 
JDK 7.

-Joe

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/compiler-dev/attachments/20140404/a739b423/attachment.html>


More information about the compiler-dev mailing list