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 - Code indention in if/else behaves incorrectly
Summary: Code indention in if/else behaves incorrectly
Status: RESOLVED DUPLICATE of bug 188112
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC All
: P3 normal with 2 votes (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 188342 189927 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-06-03 07:02 UTC by aschild
Modified: 2010-10-21 12:37 UTC (History)
3 users (show)

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 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 ***