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 208652

Summary: Infinite loop in DirectMergeContainer
Product: editor Reporter: Miloslav Metelka <mmetelka>
Component: Painting & PrintingAssignee: Miloslav Metelka <mmetelka>
Status: RESOLVED FIXED    
Severity: normal CC: schkovich
Priority: P3    
Version: 7.2   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Miloslav Metelka 2012-02-20 15:43:20 UTC
Based on issue #154019 it can be reproduced by
1. Create PHP project
2. Create a new PHP file
3. Select All text
4. Paste the following text
<?
class Form {
    function add_text_field() {}
    function add_listbox() {}
}
?>
5. Invoke Alt+Shift+F for reformat.
6. CPU at 100% due to infinite loop in DirectMergeContainer.
Comment 1 Miloslav Metelka 2012-02-20 15:45:37 UTC
http://hg.netbeans.org/jet-main/rev/e4f2e2e42ab6
Comment 2 Miloslav Metelka 2012-02-20 15:47:21 UTC
*** Bug 208487 has been marked as a duplicate of this bug. ***
Comment 3 Quality Engineering 2012-02-21 10:56:22 UTC
Integrated into 'main-golden', will be available in build *201202210400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/e4f2e2e42ab6
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #208652 - Infinite loop in DirectMergeContainer.
Comment 4 Quality Engineering 2012-02-22 11:03:37 UTC
Integrated into 'main-golden', will be available in build *201202220400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/e4f2e2e42ab6
User: Miloslav Metelka <mmetelka@netbeans.org>
Log: #208652 - Infinite loop in DirectMergeContainer.