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 187116

Summary: Code indention in if/else behaves incorrectly
Product: java Reporter: aschild <aschild>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: RESOLVED DUPLICATE    
Severity: normal CC: eugene-71, M8R, TrojanMyth
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description aschild 2010-06-03 07:02:09 UTC
Code idention in java code behaves incorrect.

Having the given code:

public void method1()
{
    if (true)
    {
            
    }
}

now go to the endif tag and type "else" and enter.
The result is now as below, the else is not indented at all.

       if (true)
        {
            
        }
 else
     
    }
Comment 1 eugene-71 2010-06-16 15:58:34 UTC
Have same problem.
Comment 2 Peter Pis 2010-07-15 08:00:13 UTC
*** Bug 188342 has been marked as a duplicate of this bug. ***
Comment 3 Peter Pis 2010-08-27 08:36:37 UTC
*** Bug 189927 has been marked as a duplicate of this bug. ***
Comment 4 mobow 2010-09-24 09:50:26 UTC
Same here.
Comment 5 Dusan Balek 2010-10-21 12:37:09 UTC
Already fixed.

*** This bug has been marked as a duplicate of bug 188112 ***