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.

Bug 198194 - entering ')' inconsistent when followed by ')' in text
Summary: entering ')' inconsistent when followed by ')' in text
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-29 02:30 UTC by err
Modified: 2011-05-06 05:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description err 2011-04-29 02:30:18 UTC
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();
        }
Comment 1 Dusan Balek 2011-05-05 08:42:22 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/388eb57cadc0
Comment 2 Quality Engineering 2011-05-06 05:09:05 UTC
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.