RFR: 8198317: Enhance JavacTool.getTask for flexibility [v2]

Joel Borggrén-Franck jfranck at openjdk.java.net
Wed Apr 28 10:40:56 UTC 2021


On Mon, 15 Mar 2021 11:23:38 GMT, Jan Lahoda <jlahoda at openjdk.org> wrote:

>> This is a clone of https://github.com/openjdk/jdk/pull/1896, which got closed by Skara.
>> 
>> @lgxbslgx, please let me know if you would prefer to resubmit the PR yourself.
>
> Jan Lahoda has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Updating test per review comments.

src/jdk.compiler/share/classes/com/sun/tools/javac/api/JavacTool.java line 173:

> 171:                 // Situation: out is null and the value is not set in the context.
> 172:                 context.put(Log.errKey, new PrintWriter(System.err, true));
> 173:             else if (out instanceof PrintWriter)

Can use instance of pattern matching

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

PR: https://git.openjdk.java.net/jdk/pull/2871


More information about the compiler-dev mailing list