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 60179 - Surround with try-catch sometimes adds a unnecessary line
Summary: Surround with try-catch sometimes adds a unnecessary line
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-17 10:08 UTC by Roman Strobl
Modified: 2007-09-26 09:14 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 Roman Strobl 2005-06-17 10:08:39 UTC
[NetBeans 200506161800; WinXP; JDK 1.5.0_04]

I have the following code:

    public Main() {

|        throw new Exception();|
    }

The | | sings designate selected code. I execute surround with try-catch and the
result is:

    public Main() {
        try {

            throw new Exception();
        } catch (java.lang.Exception e) {
        }
    }

I think the line above throw is not necessary. Just a small glitch.
Comment 1 Jan Becicka 2006-10-26 16:26:28 UTC
Javacore module was replaced by Retouche infrastructure. This bug is not valid
in trunk any more.
Comment 2 Quality Engineering 2007-09-20 09:44:26 UTC
Reorganization of java component