RFR: 8268869: java in source-file mode suggests javac-only Xlint flags

Jonathan Gibbons jjg at openjdk.java.net
Mon Oct 4 15:33:10 UTC 2021


On Thu, 5 Aug 2021 08:59:44 GMT, Adam Sotona <asotona at openjdk.org> wrote:

>> test/langtools/tools/javac/launcher/SourceLauncherTest.java line 624:
>> 
>>> 622:             "      if (o instanceof String s) {\n" +
>>> 623:             "          System.out.println(s);\n" +
>>> 624:             "      }\n" +
>> 
>> Is there a reason you're not using a text block here?
>
> Using text block will prevent potential "clean" backports of this issue. However if you think this patch won't be subject of backport, I can turn it into text block.

��

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

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


More information about the compiler-dev mailing list