Community
Participate
Working Groups
The precise test case is the following: String a; String[] b; String[][] c; Put the cursor on String or String[]. All occurrences of String get highlighted. Now put the cursor on String[][]. No occurrence of String is highlighted. It looks like there is a missing loop when removing square brackets ;o) I use 3.1M6. Best regards, Cyril
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