RFR: 8159855

Alan Bateman Alan.Bateman at oracle.com
Wed Oct 5 11:39:02 UTC 2016



On 05/10/2016 12:10, Remi Forax wrote:
> Very nice,
> it will greatly help gradle, maven, etc.
>
> in com/sun/tools/javac/main/Main.java,
> the other constructor should delegate its initialization to the constructor you just add,
>       public Main(String name, PrintWriter out) {
>           this(name, out, out);
>       }
>
> I wonder if findFirst() in ToolProvider should not take a ClassLoader as parameter instead of being restricted to the system classloader.
>
The findFirst(tool) method just a convenience, the intention is that if 
you want to use other contexts then you just invoke ServiceLoader to 
locate it.

-Alan.


More information about the compiler-dev mailing list