Bug 571239 - [Tests] 21 test failures in I20210216-1340 on windows
- Compiler user / as file separator. but the test is using
File.separator for / this causes windows to use \. which is incorrect.
Change-Id: I4ce8590eb838681bb266808297339d80053ec225
Signed-off-by: Sravan Kumar Lakkimsetti <sravankumarl@in.ibm.com>
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullAnnotationBatchCompilerTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullAnnotationBatchCompilerTest.java
index 5ee587e..ff78e89 100644
--- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullAnnotationBatchCompilerTest.java
+++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullAnnotationBatchCompilerTest.java
@@ -1103,12 +1103,12 @@
// expect eea-motivated problems in Test1 but no in FooImpl:
String expectedCompilerMessage =
"----------\n" +
- "1. ERROR in ---OUTPUT_DIR_PLACEHOLDER---" + File.separator + "test1" + File.separator + "Test1.java (at line 7)\n" +
+ "1. ERROR in ---OUTPUT_DIR_PLACEHOLDER---/test1/Test1.java (at line 7)\n" +
" String result = api.m(null);\n" +
" ^^^^\n" +
"Null type mismatch: required '@NonNull String' but the provided value is null\n" +
"----------\n" +
- "2. WARNING in ---OUTPUT_DIR_PLACEHOLDER---" + File.separator + "test1" + File.separator + "Test1.java (at line 8)\n" +
+ "2. WARNING in ---OUTPUT_DIR_PLACEHOLDER---/test1/Test1.java (at line 8)\n" +
" System.out.println(result.toUpperCase());\n" +
" ^^^^^^\n" +
"Potential null pointer access: The variable result may be null at this location\n" +