Skip to content

Commit 38b6503

Browse files
mickaelistriarobstryker
authored andcommitted
Match "This instance method cannot override the static method from X" in
test
1 parent 690f962 commit 38b6503

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ConverterTestSetup.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,6 +1066,8 @@ private boolean matchesAlternateMessage(String original, String expected, int pr
10661066
return (arguments[0] + " is not an annotation type").equals(expected);
10671067
case IProblem.UndefinedAnnotationMember:
10681068
return ("The attribute " + arguments[0] + " is undefined for the annotation type " + arguments[3]).replaceAll("@interface ", "").equals(expected);
1069+
case IProblem.CannotOverrideAStaticMethodWithAnInstanceMethod:
1070+
return ("This instance method cannot override the static method from " + arguments[3]).replaceAll("@interface ", "").equals(expected);
10691071
case IProblem.Syntax:
10701072
return original.equals(switch (expected) {
10711073
case "Syntax error, insert \"Finally\" to complete BlockStatements" -> "'try' without 'catch', 'finally' or resource declarations";

0 commit comments

Comments
 (0)