Skip to content

Commit e76256f

Browse files
mickaelistriarobstryker
authored andcommitted
Match "This static method cannot hide the instance method from X" in
tests
1 parent 38b6503 commit e76256f

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
@@ -1068,6 +1068,8 @@ private boolean matchesAlternateMessage(String original, String expected, int pr
10681068
return ("The attribute " + arguments[0] + " is undefined for the annotation type " + arguments[3]).replaceAll("@interface ", "").equals(expected);
10691069
case IProblem.CannotOverrideAStaticMethodWithAnInstanceMethod:
10701070
return ("This instance method cannot override the static method from " + arguments[3]).replaceAll("@interface ", "").equals(expected);
1071+
case IProblem.CannotHideAnInstanceMethodWithAStaticMethod:
1072+
return ("This static method cannot hide the instance method from " + arguments[3]).replaceAll("@interface ", "").equals(expected);
10711073
case IProblem.Syntax:
10721074
return original.equals(switch (expected) {
10731075
case "Syntax error, insert \"Finally\" to complete BlockStatements" -> "'try' without 'catch', 'finally' or resource declarations";

0 commit comments

Comments
 (0)