Re: RFR: 8297455: Use the official ToolProvider API to call javac

2022-12-02 Thread Erik Joelsson
On Thu, 1 Dec 2022 23:21:30 GMT, Magnus Ihse Bursie wrote: > I have now verified that the interim compiler is indeed used (made it say bad > words and fail at startup, so there is no doubt about it :)). As to the > reason why this is so, here is the magic incantation from > `$(INTERIM_LANGTOOL

Re: RFR: 8297455: Use the official ToolProvider API to call javac [v4]

2022-12-01 Thread Magnus Ihse Bursie
> In JDK-8297041, the javacserver was moved out of the JDK itself, and lifted > out as a separate buildtool. Due to this, internal classes in jdk.compiler > were no longer available. Therefore, the closest way to calling javac as > before were to use `com.sun.tools.javac.Main.compile()`. This me

Re: RFR: 8297455: Use the official ToolProvider API to call javac [v2]

2022-12-01 Thread Magnus Ihse Bursie
> In JDK-8297041, the javacserver was moved out of the JDK itself, and lifted > out as a separate buildtool. Due to this, internal classes in jdk.compiler > were no longer available. Therefore, the closest way to calling javac as > before were to use `com.sun.tools.javac.Main.compile()`. This me

Re: RFR: 8297455: Use the official ToolProvider API to call javac [v3]

2022-12-01 Thread Magnus Ihse Bursie
> In JDK-8297041, the javacserver was moved out of the JDK itself, and lifted > out as a separate buildtool. Due to this, internal classes in jdk.compiler > were no longer available. Therefore, the closest way to calling javac as > before were to use `com.sun.tools.javac.Main.compile()`. This me

Re: RFR: 8297455: Use the official ToolProvider API to call javac

2022-12-01 Thread Magnus Ihse Bursie
On Tue, 22 Nov 2022 20:50:04 GMT, Magnus Ihse Bursie wrote: > In JDK-8297041, the javacserver was moved out of the JDK itself, and lifted > out as a separate buildtool. Due to this, internal classes in jdk.compiler > were no longer available. Therefore, the closest way to calling javac as > be

Re: RFR: 8297455: Use the official ToolProvider API to call javac

2022-11-22 Thread Magnus Ihse Bursie
On Tue, 22 Nov 2022 20:50:04 GMT, Magnus Ihse Bursie wrote: > In JDK-8297041, the javacserver was moved out of the JDK itself, and lifted > out as a separate buildtool. Due to this, internal classes in jdk.compiler > were no longer available. Therefore, the closest way to calling javac as > be

Re: RFR: 8297455: Use the official ToolProvider API to call javac

2022-11-22 Thread Erik Joelsson
On Tue, 22 Nov 2022 20:50:04 GMT, Magnus Ihse Bursie wrote: > In JDK-8297041, the javacserver was moved out of the JDK itself, and lifted > out as a separate buildtool. Due to this, internal classes in jdk.compiler > were no longer available. Therefore, the closest way to calling javac as > be

RFR: 8297455: Use the official ToolProvider API to call javac

2022-11-22 Thread Magnus Ihse Bursie
In JDK-8297041, the javacserver was moved out of the JDK itself, and lifted out as a separate buildtool. Due to this, internal classes in jdk.compiler were no longer available. Therefore, the closest way to calling javac as before were to use `com.sun.tools.javac.Main.compile()`. This method is

Re: RFR: 8297455: Use the official ToolProvider API to call javac

2022-11-22 Thread Magnus Ihse Bursie
On Tue, 22 Nov 2022 20:50:04 GMT, Magnus Ihse Bursie wrote: > In JDK-8297041, the javacserver was moved out of the JDK itself, and lifted > out as a separate buildtool. Due to this, internal classes in jdk.compiler > were no longer available. Therefore, the closest way to calling javac as > be