Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2019-05-12 07:07:03 -0400
committerStephan Herrmann2019-05-12 07:07:03 -0400
commitb150a823927c3586fa8e11a2cb098c3e2dbbc1e5 (patch)
tree9253df795e46dca8199e9c76f0f80b7cebc81f65
parent467fcae66a2b2209658bc940708896e0bd80e606 (diff)
downloadeclipse.jdt.core-b150a823927c3586fa8e11a2cb098c3e2dbbc1e5.tar.gz
eclipse.jdt.core-b150a823927c3586fa8e11a2cb098c3e2dbbc1e5.tar.xz
eclipse.jdt.core-b150a823927c3586fa8e11a2cb098c3e2dbbc1e5.zip
Bug 512156 - [inference] Eclipse build freezes due to generics
processing - test fix wrt run-javac Change-Id: I4a770afd19e978e90adf92ede6bec0ccc3bb7499 Signed-off-by: Stephan Herrmann <stephan.herrmann@berlin.de>
-rw-r--r--org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java
index 26b37e44c7..7af73780a3 100644
--- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java
+++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java
@@ -12147,10 +12147,7 @@ public void testBug546084a() throws Exception {
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=546084 - Using Junit 5s MethodSource leads to
// ClassCastException - non string value, e.g. ClassLiteralAccess in @MethodSource annotation
public void testBug546084b() throws Exception {
- Map customOptions = getCompilerOptions();
- customOptions.put(CompilerOptions.OPTION_ReportUnusedPrivateMember, CompilerOptions.ERROR);
this.runNegativeTest(
- true,
new String[] {
JUNIT_METHODSOURCE_NAME,
JUNIT_METHODSOURCE_CONTENT,
@@ -12168,19 +12165,17 @@ public void testBug546084b() throws Exception {
" }\n" +
"}\n",
},
- null, customOptions,
"----------\n" +
"1. ERROR in ExampleTest.java (at line 6)\n" +
" @MethodSource(Object.class)\n" +
" ^^^^^^^^^^^^\n" +
"Type mismatch: cannot convert from Class<Object> to String[]\n" +
"----------\n" +
- "2. ERROR in ExampleTest.java (at line 9)\n" +
+ "2. WARNING in ExampleTest.java (at line 9)\n" +
" private static List<Integer> getIntegers(int i) {\n" +
" ^^^^^^^^^^^^^^^^^^\n" +
"The method getIntegers(int) from the type ExampleTest is never used locally\n" +
- "----------\n",
- JavacTestOptions.Excuse.EclipseWarningConfiguredAsError);
+ "----------\n");
}
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=546084 - Using Junit 5s MethodSource leads to
//ClassCastException - array of string values, e.g. ArrayInitializer in @MethodSource annotation

Back to the top