This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
String[] values = new String[10]; for (int i = 0; i < values.length; i++) { values[i].<Ctrl+Space hier does not work> }
I will look at it.
Actually, there were two independent bugs that prevented code completion to work correctly on the above mentioned example: 1) JavaDeclarationProcessor didn't propagate local variables declared as a part of for statement to the statement body. 2) NbJavaJMICompletionQuery had a minor bug in array dereferencing. Fixed in [maintrunk]. Checking in JavaDeclarationProcessor.java; /cvs/editor/libsrc/org/netbeans/editor/ext/java/JavaDeclarationProcessor.java,v <-- JavaDeclarationProcessor.java new revision: 1.13; previous revision: 1.12 done Checking in NbJavaJMICompletionQuery.java; /cvs/editor/src/org/netbeans/modules/editor/java/NbJavaJMICompletionQuery.java,v <-- NbJavaJMICompletionQuery.java new revision: 1.44; previous revision: 1.43 done
After a discussion with QA, setting priority to P3 and target milestone to 4.1
This issue was identified as a serious usability problem and should be fixed in the relase40 branch. I have raised priority. I have reviewed Dusan's fix and I approve it.
Visual diffs for completness: http://www.netbeans.org/source/browse/editor/libsrc/org/netbeans/editor/ext/java/JavaDeclarationProcessor.java.diff?r1=1.12&r2=1.13 http://www.netbeans.org/source/browse/editor/src/org/netbeans/modules/editor/java/NbJavaJMICompletionQuery.java.diff?r1=1.43&r2=1.44
Checking in libsrc/org/netbeans/editor/ext/java/JavaDeclarationProcessor.java; Integrated into [release40]. /cvs/editor/libsrc/org/netbeans/editor/ext/java/JavaDeclarationProcessor.java,v <-- JavaDeclarationProcessor.java new revision: 1.12.4.1; previous revision: 1.12 done Checking in src/org/netbeans/modules/editor/java/NbJavaJMICompletionQuery.java; /cvs/editor/src/org/netbeans/modules/editor/java/NbJavaJMICompletionQuery.java,v <-- NbJavaJMICompletionQuery.java new revision: 1.43.2.1; previous revision: 1.43 done
*** Issue 51513 has been marked as a duplicate of this issue. ***
*** Issue 52043 has been marked as a duplicate of this issue. ***
OK