Skip to content

Test failures in I-Builds due to less diagnostics being emitted #3356

@srikanth-sankaran

Description

@srikanth-sankaran

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

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions