| Summary: | [validation] one of each of the warning() and error() methods drop issue data | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Knut Wannheden <knut.wannheden> |
| Component: | Xtext | Assignee: | Project Inbox <tmf.xtext-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | sebastian.zarnekow |
| Version: | 2.0.0 | Flags: | sebastian.zarnekow:
indigo+
|
| Target Milestone: | RC1 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
Pushed to master. Closing all bugs that were set to RESOLVED before Neon.0 Closing all bugs that were set to RESOLVED before Neon.0 |
The methods AbstractDeclarativeValidator#error(String, EStructuralFeature, String, String...) and the corresponding AbstractDeclarativeValidator#warning(String, EStructuralFeature, String, String...) drop the passed issueData parameter: protected void error(String message, EStructuralFeature feature, String code, String... issueData) { error(message, feature, ValidationMessageAcceptor.INSIGNIFICANT_INDEX, code); } protected void warning(String message, EStructuralFeature feature, String code, String... issueData) { warning(message, state.get().currentObject, feature, ValidationMessageAcceptor.INSIGNIFICANT_INDEX, code); } The methods should instead read: protected void error(String message, EStructuralFeature feature, String code, String... issueData) { error(message, feature, ValidationMessageAcceptor.INSIGNIFICANT_INDEX, code, issueData); } protected void warning(String message, EStructuralFeature feature, String code, String... issueData) { warning(message, state.get().currentObject, feature, ValidationMessageAcceptor.INSIGNIFICANT_INDEX, code, issueData); }