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 60619 - Surround with try-catch behaves differently depending on invocation
Summary: Surround with try-catch behaves differently depending on invocation
Status: VERIFIED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-29 14:39 UTC by Milan Kubec
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 Milan Kubec 2005-06-29 14:39:28 UTC
[dev-200506281800, JDK 1.5.0_04]

Surround with try-catch invoked from editor hint adds 
import java.io.IOException;
and generates code:

        File f = new File("");
        try {
            f.createNewFile();
        } catch (IOException e) {
        }

The same action invoked from pop-up menu generates code:

        File f = new File("");
        try {
            f.createNewFile();
        } catch (java.io.IOException e) {
        }
Comment 1 Jan Becicka 2005-08-24 07:33:30 UTC
Cannot reproduce in latest build.
Comment 2 Milan Kubec 2005-09-13 09:44:19 UTC
Verified, the behavior is the same regardless of invocation. Should be closed as
WORKSFORME.
Comment 3 Milan Kubec 2005-09-13 09:45:30 UTC
WORKSFORME
Comment 4 Milan Kubec 2005-10-31 13:47:06 UTC
V