Re: JDK 9 RFR of JDK-8072480: javac should support compilation for a specific platform version

2015-06-26 Thread Maurizio Cimadamore
Looks good to me too; I like the name choice of the new Provider/Description pair. Maurizio On 25/06/15 22:32, Jonathan Gibbons wrote: Looks good to me :-) -- Jon On 06/24/2015 06:13 AM, Jan Lahoda wrote: Hello, After some offline discussions, I've somewhat changed the internal API for

Re: JDK 9 RFR of JDK-8072480: javac should support compilation for a specific platform version

2015-06-26 Thread Jan Lahoda
Based on additional Jon's feedback, I made some minor tweaks to the patch. An updated webrev is here: http://cr.openjdk.java.net/~jlahoda/8072480/webrev.06/langtools/ A delta webrev is available under Author comments. Unless there are objections, I'll work on pushing this to jdk9/dev. Thanks

Re: JDK 9 RFR of JDK-8072480: javac should support compilation for a specific platform version

2015-06-25 Thread Jonathan Gibbons
Looks good to me :-) -- Jon On 06/24/2015 06:13 AM, Jan Lahoda wrote: Hello, After some offline discussions, I've somewhat changed the internal API for plugging in the platforms (based on Jon's advices). An updated webrev is here:

Re: JDK 9 RFR of JDK-8072480: javac should support compilation for a specific platform version

2015-06-03 Thread Magnus Ihse Bursie
On 2015-06-02 18:50, Jan Lahoda wrote: Hello Eric, Thanks for the change, this seems definitely better to me. I've folded your change that into my patch. An updated version (just langtools this time): http://cr.openjdk.java.net/~jlahoda/8072480/webrev.04/langtools/ Thanks! From a build

Re: JDK 9 RFR of JDK-8072480: javac should support compilation for a specific platform version

2015-06-02 Thread Erik Joelsson
Hello Jan, Sorry to bother you with even more build changes, but with these file moves, I realized that this new file, ct.sym, is really a part of the jdk.compiler module and really not a special case at all. Because of this, it should be generated as part of the jdk.compiler-gendata target.

Re: JDK 9 RFR of JDK-8072480: javac should support compilation for a specific platform version

2015-06-02 Thread Jan Lahoda
Hello Eric, Thanks for the change, this seems definitely better to me. I've folded your change that into my patch. An updated version (just langtools this time): http://cr.openjdk.java.net/~jlahoda/8072480/webrev.04/langtools/ Thanks! Jan On 2.6.2015 16:04, Erik Joelsson wrote: Hello Jan,

Re: JDK 9 RFR of JDK-8072480: javac should support compilation for a specific platform version

2015-06-01 Thread Jan Lahoda
Hi, I made a somewhat bigger update (partially based on other feedback). Summary of changes: -the history data has been moved into langtools (I also moved the Ctsym.gmk) -there are JDK 6 data now -renamed the -platform option to -release. Code/tests directly related to the option has been

Re: JDK 9 RFR of JDK-8072480: javac should support compilation for a specific platform version

2015-05-27 Thread Jan Lahoda
Hi, I've uploaded another iteration, with these changes: -the symbols file is now generated automatically (for the typical OpenJDK case). -fixed a minor issue in CreateSymbols that could cause putting class description into wrong a file (the break - break OUTER; change). -jdk.management module

Re: JDK 9 RFR of JDK-8072480: javac should support compilation for a specific platform version

2015-05-27 Thread Maurizio Cimadamore
Looks great. The only nitpick is that the comments in CreateSymbols don't mention the fact that a side effect of the sym.txt generation is the platform-description-file mentioned earlier in the same comments (so one might wonder where does that come from). Maurizio On 27/05/15 10:37, Jan

Re: JDK 9 RFR of JDK-8072480: javac should support compilation for a specific platform version

2015-05-27 Thread Jan Lahoda
Ah, yes, I did not realize that. Thanks, will fix. Thanks, Jan On 27.5.2015 11:59, Maurizio Cimadamore wrote: Looks great. The only nitpick is that the comments in CreateSymbols don't mention the fact that a side effect of the sym.txt generation is the platform-description-file mentioned

Re: JDK 9 RFR of JDK-8072480: javac should support compilation for a specific platform version

2015-05-25 Thread Magnus Ihse Bursie
On 2015-05-22 14:38, Jan Lahoda wrote: Hi, I've uploaded a new iteration of the patch(es): top-level repository: http://cr.openjdk.java.net/~jlahoda/8072480/webrev.01/top-level/ langtools: http://cr.openjdk.java.net/~jlahoda/8072480/webrev.01/langtools/ (besides full webrevs, there are also

Re: JDK 9 RFR of JDK-8072480: javac should support compilation for a specific platform version

2015-05-22 Thread Erik Joelsson
On 2015-05-21 21:59, mark.reinh...@oracle.com wrote: 2015/5/21 12:01 -0700, jan.lah...@oracle.com: This is a patch adding a new option, -platform, to javac. Patch for the top-level repository is here: http://cr.openjdk.java.net/~jlahoda/8072480/webrev.00/top-level/ Patch for the langtools

Re: JDK 9 RFR of JDK-8072480: javac should support compilation for a specific platform version

2015-05-22 Thread Jan Lahoda
On 22.5.2015 08:49, Erik Joelsson wrote: On 2015-05-21 21:59, mark.reinh...@oracle.com wrote: 2015/5/21 12:01 -0700, jan.lah...@oracle.com: This is a patch adding a new option, -platform, to javac. Patch for the top-level repository is here:

Re: JDK 9 RFR of JDK-8072480: javac should support compilation for a specific platform version

2015-05-22 Thread Jan Lahoda
On 22.5.2015 14:52, Maurizio Cimadamore wrote: Excellent work. I think the comment in CreateSymbols could be made clearer w.r.t. Probe - i.e. that Probe should be ran on top of the JDK N - i.e. JDK-8/bin/java Probe -- classes-8 JDK-7/bin/java Probe -- classes-7 JDK-6/bin/java Probe --

Re: JDK 9 RFR of JDK-8072480: javac should support compilation for a specific platform version

2015-05-22 Thread Jan Lahoda
Hi, I've uploaded a new iteration of the patch(es): top-level repository: http://cr.openjdk.java.net/~jlahoda/8072480/webrev.01/top-level/ langtools: http://cr.openjdk.java.net/~jlahoda/8072480/webrev.01/langtools/ (besides full webrevs, there are also webrevs showing the differences between

Re: JDK 9 RFR of JDK-8072480: javac should support compilation for a specific platform version

2015-05-22 Thread Maurizio Cimadamore
Excellent work. I think the comment in CreateSymbols could be made clearer w.r.t. Probe - i.e. that Probe should be ran on top of the JDK N - i.e. JDK-8/bin/java Probe -- classes-8 JDK-7/bin/java Probe -- classes-7 JDK-6/bin/java Probe -- classes-7 etc. Maurizio On 22/05/15 13:38, Jan

JDK 9 RFR of JDK-8072480: javac should support compilation for a specific platform version

2015-05-21 Thread Jan Lahoda
Hi, This is a patch adding a new option, -platform, to javac. Patch for the top-level repository is here: http://cr.openjdk.java.net/~jlahoda/8072480/webrev.00/top-level/ Patch for the langtools repository is here: http://cr.openjdk.java.net/~jlahoda/8072480/webrev.00/langtools/ These changes

Re: JDK 9 RFR of JDK-8072480: javac should support compilation for a specific platform version

2015-05-21 Thread Erik Joelsson
Hello Jan, On the build changes there are some things I would like to change. * The creation of the ct.sym file should be done in a separate file, with a separate top level target. The images target should just be about linking and pulling things together, not actual building/compiling of

Re: JDK 9 RFR of JDK-8072480: javac should support compilation for a specific platform version

2015-05-21 Thread Jan Lahoda
Hi Maurizio, Thanks for the comments. On 21.5.2015 12:31, Maurizio Cimadamore wrote: Hi Jan, great work - couple of comments below: * it seems like some of the routines in Arguments can be simplified using lambdas - especially lookupPlatformProvider and checkOptionAllowed Yes, I'll take a

Re: JDK 9 RFR of JDK-8072480: javac should support compilation for a specific platform version

2015-05-21 Thread Erik Joelsson
On 2015-05-21 13:21, Magnus Ihse Bursie wrote: Hi Erik and Jan, Erik's modifications look much better to me. I'm just not entirerly satisfied with how this new symbolgenerator tool fits int our model. It's really a buildtool, similar to the other buildtools we have. First of all, the

Re: JDK 9 RFR of JDK-8072480: javac should support compilation for a specific platform version

2015-05-21 Thread Jan Lahoda
Hi Magnus, On 21.5.2015 13:21, Magnus Ihse Bursie wrote: Hi Erik and Jan, Erik's modifications look much better to me. I'm just not entirerly satisfied with how this new symbolgenerator tool fits int our model. It's really a buildtool, similar to the other buildtools we have. First of all,

Re: JDK 9 RFR of JDK-8072480: javac should support compilation for a specific platform version

2015-05-21 Thread Jan Lahoda
On 21.5.2015 14:14, Maurizio Cimadamore wrote: On 21/05/15 12:48, Jan Lahoda wrote: As an example, consider we would be currently storing data for 6, 7 and 8. We could have full 8 APIs stored, and then 8-7 diff and 7-6 diff. So the baseline for 7 would be 8 and the baseline for 6 would be 7.

Re: JDK 9 RFR of JDK-8072480: javac should support compilation for a specific platform version

2015-05-21 Thread Maurizio Cimadamore
On 21/05/15 12:48, Jan Lahoda wrote: As an example, consider we would be currently storing data for 6, 7 and 8. We could have full 8 APIs stored, and then 8-7 diff and 7-6 diff. So the baseline for 7 would be 8 and the baseline for 6 would be 7. When the data for 9 would be added(*), we

Re: JDK 9 RFR of JDK-8072480: javac should support compilation for a specific platform version

2015-05-21 Thread mark . reinhold
2015/5/21 12:01 -0700, jan.lah...@oracle.com: This is a patch adding a new option, -platform, to javac. Patch for the top-level repository is here: http://cr.openjdk.java.net/~jlahoda/8072480/webrev.00/top-level/ Patch for the langtools repository is here:

Re: JDK 9 RFR of JDK-8072480: javac should support compilation for a specific platform version

2015-05-21 Thread Maurizio Cimadamore
Hi Jan, great work - couple of comments below: * it seems like some of the routines in Arguments can be simplified using lambdas - especially lookupPlatformProvider and checkOptionAllowed * Why JDKPlatformProvider is not called JDKPlatformProvider*Factory* ? *

Re: JDK 9 RFR of JDK-8072480: javac should support compilation for a specific platform version

2015-05-21 Thread Jan Lahoda
Hello Eric, Thanks a lot for your feedback and changes! I'll fold them into the patch. Thanks, Jan On 21.5.2015 11:42, Erik Joelsson wrote: Hello Jan, On the build changes there are some things I would like to change. * The creation of the ct.sym file should be done in a separate file,

Re: JDK 9 RFR of JDK-8072480: javac should support compilation for a specific platform version

2015-05-21 Thread Magnus Ihse Bursie
Hi Erik and Jan, Erik's modifications look much better to me. I'm just not entirerly satisfied with how this new symbolgenerator tool fits int our model. It's really a buildtool, similar to the other buildtools we have. First of all, the location is not really ideal. Compare with how the