| Summary: | The Mark Occurrences feature does not mark all occurrences | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Cyril Adrian <cyril.adrian> |
| Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | minor | ||
| Priority: | P3 | CC: | daniel_megert |
| Version: | 3.1 | ||
| Target Milestone: | 3.1 M7 | ||
| Hardware: | PC | ||
| OS: | Windows 2000 | ||
| Whiteboard: | |||
|
Description
Cyril Adrian
The important thing is to have this as variable declarations - it works for
field declarations:
public class Test {
String fa; <- works
String[] fb; <- works
String[][] fc; <- works
String[][][] fd; <- works
void foo() {
String a; <- works
String[] b; <- works
String[][] c; <- DOES NOT WORK
String[][][] d; <- DOES NOT WORK
}
}
Same behavior in 3.0. It seems that the bindings are not considered equal.
Moving to J Core for comment.
I will investigate. The bug seems to come from wrong positions in the node for: String[][] c; String[][][] d; The component types have no positions. I am investigating a fix. The problem did come from missing positions. Fixed and released in HEAD. Regression tests added in org.eclipse.jdt.core.tests.dom.ASTConverterTestAST3_2.test0603/0604. Verified for 3.1 M7 using build I20050512-2035 + jdt.core HEAD. It works. Thank you very much :-) Best regards, Cyril |