-
Notifications
You must be signed in to change notification settings - Fork 162
Closed
Milestone
Description
org.eclipse.jdt.ui.tests.quickfix.LocalCorrectionsQuickFixTest has started failing since the merge of #3310 because we emit one less error for:
package pack;
public class E {
public enum color {
black, white
}
public void foo(color c) {
switch (c) {
case (color.black):
System.out.println("Black");
break;
}
}
}
Basically the new implementation does an early return after having reported Enum constants cannot be surrounded by parenthesis. This results in the other error The qualified case label color.black must be replaced with the unqualified enum constant black from not surfacing.
While it is not a correctness issue - once you fix the only error reported, the second error will surface, it is better to restore older behavior that reports both errors upfront.
Metadata
Metadata
Assignees
Labels
No labels