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 212738 - Indentation of "Try-Catch" is wrong
Summary: Indentation of "Try-Catch" is wrong
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: PC Windows Vista
: P3 normal with 2 votes (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-19 15:26 UTC by MackSix
Modified: 2013-08-30 14:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
First Screenshot (38.87 KB, image/png)
2012-05-19 15:26 UTC, MackSix
Details
Second Screenshot (40.38 KB, image/png)
2012-05-19 15:26 UTC, MackSix
Details
Third Screenshot (39.11 KB, image/png)
2012-05-19 15:26 UTC, MackSix
Details
Shows the issue - another example (86.48 KB, image/png)
2013-08-23 19:15 UTC, markiewb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2012-05-19 15:26:08 UTC
Created attachment 119643 [details]
First Screenshot

Surround Statement with try-catch indentation format is wrong.

See attached screenshots.

First Screenshot show before statement "Thread.sleep(10);"

Second Screenshot shows after invoking "Surround Statement with try-catch".

Third Screenshot shows what the indentation should look like.
Comment 1 MackSix 2012-05-19 15:26:38 UTC
Created attachment 119644 [details]
Second Screenshot
Comment 2 MackSix 2012-05-19 15:26:58 UTC
Created attachment 119645 [details]
Third Screenshot
Comment 3 shanethehat 2012-11-08 12:47:52 UTC
Also present in 7.1-7.3b on Linux (Ubuntu 12.04)
Comment 4 markiewb 2013-08-23 19:15:28 UTC
Created attachment 139153 [details]
Shows the issue - another example
Comment 5 markiewb 2013-08-23 19:16:12 UTC
(In reply to markiewb from comment #4)
> Created attachment 139153 [details]
> Shows the issue - another example

Still happens using 7.4dev

Product Version: NetBeans IDE Dev (Build 201308192300)
Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b16
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 6 Dusan Balek 2013-08-30 14:14:08 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/5f8784222618