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 97375 - Surround with try-catch does not honour 'new line after brace' option
Summary: Surround with try-catch does not honour 'new line after brace' option
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: PC Linux
: P4 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-07 13:17 UTC by Max Sauer
Modified: 2016-07-07 07:16 UTC (History)
0 users

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 Max Sauer 2007-03-07 13:17:39 UTC
Surround with try-catch, when invoked from a hint, does not honour new line
after brace setting, the new line is always added after 'catch' or 'finally'.
Reformat code does coorrect this.

Steps to reproduce:
-------------------
1) Inside of a method, type:
java.io.PrintWriter out = new java.io.PrintWriter(new java.io.BufferedWriter(new
java.io.FileWriter("s.out")));
2) Invoke 'Surround with T-C' from appeared hint
=> newlines added

---
NetBeans IDE Dev (Build 070307)
1.6.0_01; Java HotSpot(TM) Server VM 1.6.0_01-b04
Linux version 2.6.12-1.1390_FC4smp running on i386
en_US (nb); UTF-8
Comment 1 Rastislav Komara 2009-02-03 10:52:42 UTC
Overtake.
Comment 2 Jan Lahoda 2009-08-20 09:58:11 UTC
Reassigning all moonko's java/source bugs to myself.
Comment 3 Martin Balin 2016-07-07 07:16:56 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss