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.
In the following, if the text cursor is in the middle of '()', and you enter ')', then you either get '())' or '()'. It seems that if you are in for(...), then you get '())' otherwise you get '()' public boolean startsWith(String s) { if(buf.size() < s.length()) return false; int idx = 0; for(Iterator<Integer> it = buf.iterator(); it.hasNext() && idx < s.length(); idx++) { Integer i = it.next(); } return idx == s.length(); }
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/388eb57cadc0
Integrated into 'main-golden', will be available in build *201105060000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/388eb57cadc0 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #198194: entering ')' inconsistent when followed by ')' in text - fixed.