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 146562

Summary: [65cat] problem with semi-colons in for loops
Product: editor Reporter: ardavis26 <ardavis26>
Component: -- Other --Assignee: issues@editor <issues>
Status: RESOLVED FIXED    
Severity: blocker Keywords: REGRESSION
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

Description ardavis26 2008-09-08 19:50:29 UTC
[ BUILD # : 080907 ]
[ JDK VERSION : 1.6.0_06 ]

I started typing a for loop.  I defined my variable when I typed the
   semi-colon it jumped to the end of the line.
Comment 1 Petr Dvorak 2008-09-09 10:20:55 UTC
Reproducible. Steps to reproduce:

1. Create a new Java Application with a main class
2. type "for (" to the editor
->closing bracket is completed
3. type "int i = 0;"
->semicolon jumps behind the bracket
Comment 2 Vitezslav Stejskal 2008-09-09 10:31:52 UTC
I guess this is yet another regression in the new shiny bracket completer.
Comment 3 Miloslav Metelka 2008-09-10 09:41:07 UTC
Apologies, it should now be fixed and unit tests added.
http://hg.netbeans.org/main/rev/496aee673418
Comment 4 Quality Engineering 2008-09-10 17:20:06 UTC
Integrated into 'main-golden', will be available in build *200809101401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/496aee673418
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #146562 - problem with semi-colons in for loops