| Summary: | Wrong source range for ConditionalExpression with casted target in FieldAccess as expression | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> |
| Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | ||
| Version: | 3.1 | ||
| Target Milestone: | 3.1 RC2 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
I will investigate. Reproduced. +1 for RC2 Fixed and released in HEAD. The source start of a field reference was updated only of the receiver was this. Change made in the Parser. All tests have been updated. Regression test in org.eclipse.jdt.core.tests.dom.ASTConverterTestAST3_2.test0611. Verified for 3.1 RC2 using build N20050607-0010 + JDT/Core HEAD Verified for 3.1 RC2 using build I20050610-0010 |
N20050602-0010 Code extract from MethodLocator: declarationsLevel = ((InternalSearchPattern)this.pattern).mustResolve ? POSSIBLE_MATCH : ACCURATE_MATCH; The ConditionalExpression has a wrong source range: 'mustResolve ? POSSIBLE_MATCH : ACCURATE_MATCH;' Expected: whole right hand side