On Tue, 22 Nov 2022 20:50:04 GMT, Magnus Ihse Bursie <i...@openjdk.org> 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 
> before were to use `com.sun.tools.javac.Main.compile()`. This method is 
> however deprecated for removal, and relying on that was only needed as a 
> temporary measure during the transition.
> 
> After the major refactoring of the javacserver tool in JDK-8297444, it will 
> be easy to replace the Main.compile API with the official ToolProvider API 
> instead.

This pull request has now been integrated.

Changeset: b035056d
Author:    Magnus Ihse Bursie <i...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/b035056d28a1c6c738fed6dd7f3b4d9dac75c6c7
Stats:     10 lines in 1 file changed: 7 ins; 2 del; 1 mod

8297455: Use the official ToolProvider API to call javac

Reviewed-by: erikj

-------------

PR: https://git.openjdk.org/jdk/pull/11299

Reply via email to