diff options
author | Stephan Herrmann | 2020-02-01 13:14:23 +0000 |
---|---|---|
committer | Stephan Herrmann | 2020-02-01 13:14:23 +0000 |
commit | de9bc7bf4331f269170c884d9c575400cad0e4c0 (patch) | |
tree | 670856ec353424f84083e8264b164e3b0b423ce2 | |
parent | 7ec785d36e798cc544d177d73573f7b342a40500 (diff) | |
download | eclipse.jdt.core-de9bc7bf4331f269170c884d9c575400cad0e4c0.tar.gz eclipse.jdt.core-de9bc7bf4331f269170c884d9c575400cad0e4c0.tar.xz eclipse.jdt.core-de9bc7bf4331f269170c884d9c575400cad0e4c0.zip |
Bug 404648 - [1.8][compiler] investigate differences between ECJ & javacI20200205-1800I20200205-0030I20200204-1800I20200203-1800I20200202-1800I20200201-1800
- excuse null-related differences in NullTypeAnnotationTest
- don't expect difference re 'real' (JLS) errors
Change-Id: I1cee2c854b04d58b7e787941f2c561839b40e304
-rw-r--r-- | org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullTypeAnnotationTest.java | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullTypeAnnotationTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullTypeAnnotationTest.java index bcae7dc48b..4324b64ea4 100644 --- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullTypeAnnotationTest.java +++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/NullTypeAnnotationTest.java @@ -3236,7 +3236,8 @@ public class NullTypeAnnotationTest extends AbstractNullAnnotationTest { } public void testBug416180() { - runConformTestWithLibs( + runWarningTestWithLibs( + true, new String[] { "X.java", "import org.eclipse.jdt.annotation.NonNull;\n" + @@ -4984,6 +4985,7 @@ public void testDefault05_custom() { " ^^^^^\n" + "The @NonNull field field may not have been initialized\n" + "----------\n"; + runner.javacTestOptions = JavacTestOptions.Excuse.EclipseWarningConfiguredAsError; runner.runNegativeTest(); } @@ -5029,6 +5031,7 @@ public void testDefault05_custom2() { " ^^^^^\n" + "The @NonNull field field may not have been initialized\n" + "----------\n"; + runner.javacTestOptions = JavacTestOptions.Excuse.EclipseWarningConfiguredAsError; runner.runNegativeTest(); } @@ -5305,6 +5308,7 @@ public void testDefault04_bin() { " ^^^^\n" + "Null type mismatch: required \'@NonNull Number\' but the provided value is null\n" + "----------\n"; + runner.javacTestOptions = JavacTestOptions.Excuse.EclipseWarningConfiguredAsError; runner.runNegativeTest(); } @@ -6620,7 +6624,8 @@ public void testBug439298_comment2() { ""); } public void testBug439298_comment3() { - runConformTestWithLibs( + runWarningTestWithLibs( + true, new String[] { "Extract.java", "import org.eclipse.jdt.annotation.*;\n" + @@ -17742,7 +17747,8 @@ public void testBug536555() { runner.runWarningTest(); } public void testBug540264() { - runNegativeTestWithLibs( + runNegativeTest( + true, new String[] { "example/Example.java", "package example;\n" + @@ -17754,7 +17760,8 @@ public void testBug540264() { " }\n" + "}\n" + "", - }, + }, + this.LIBS, getCompilerOptions(), "----------\n" + "1. ERROR in example\\Example.java (at line 5)\n" + @@ -17771,7 +17778,8 @@ public void testBug540264() { " for (X.Y<Z> entry : x) {\n" + " ^\n" + "x cannot be resolved to a variable\n" + - "----------\n" + "----------\n", + JavacTestOptions.DEFAULT ); } public void testBug542707_1() { |