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.
Summary: | Refactoring to wrap try-with-resources with an exception breaks the code. | ||
---|---|---|---|
Product: | java | Reporter: | Salamander |
Component: | Hints | Assignee: | Jan Lahoda <jlahoda> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jiriprox, kenneth_suter |
Priority: | P3 | ||
Version: | 7.0 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Salamander
2012-01-18 17:39:50 UTC
Fixed by added a new "Add catch Clause(s)" fix - the "Surround Block" will no longer be proposed to this code: http://hg.netbeans.org/jet-main/rev/edbcc4f9da7d Fixing formatting after adding the very first catch clause: http://hg.netbeans.org/jet-main/rev/89f350f83c64 Integrated into 'main-golden', will be available in build *201212140001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/edbcc4f9da7d User: Jan Lahoda <jlahoda@netbeans.org> Log: #207480: better handling of surround with try-catch: rather than showing Surround with block and then adding a catch into a surrounding try-catch, show directly 'Add catch Clause' *** Bug 137713 has been marked as a duplicate of this bug. *** |