RFR: JDK-8252458: Test tools/javac/parser/JavacParserTest.java fails on Windows after JDK-8237041

Jan Lahoda jan.lahoda at oracle.com
Thu Aug 27 15:36:47 UTC 2020


Hi,

In the test for a recently committed JDK-8237041, the result of 
JCTree.toString() is compared with the expected output. But the 
JCTree.toString() uses platform-specific newlines, and the test is not 
compensating that, and fails.

The proposed solution is to normalize the output of JCTree.toString(), 
as other sub-tests of JavacParserTest do.

Proposed webrev:
http://cr.openjdk.java.net/~jlahoda/8252458/webrev.00/

JBS:
https://bugs.openjdk.java.net/browse/JDK-8252458

Thanks for any comments!

Jan


More information about the compiler-dev mailing list