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 94341 - Renaming erases 'catch' blocks
Summary: Renaming erases 'catch' blocks
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Pavel Flaska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-05 11:30 UTC by Kirill Sorokin
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception (945 bytes, text/plain)
2007-02-05 11:31 UTC, Kirill Sorokin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kirill Sorokin 2007-02-05 11:30:22 UTC
Refactor/rename a variable which is inside a 'try-catch' with N catch blocks.
After renaming the first N-1 'catch' blocks will be deleted. The user needs to
click on the diff panel to revert the change.

This behavior is accompanied with an exception (see attach).

--
I'm working with

NetBeans IDE Dev (Build 200701150200)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
ru_RU (nb); Cp1251
Comment 1 Kirill Sorokin 2007-02-05 11:31:01 UTC
Created attachment 38029 [details]
Exception
Comment 2 Kirill Sorokin 2007-02-07 06:57:28 UTC
Recently I've tried renaming a class field.. All of the try-catch blocks where
it was used had their N-1 catches erased. No exception this time.
Comment 3 Jiri Prox 2007-03-20 15:30:17 UTC
Is this still reproducible in current trunk? If yes, please attach the file.
Comment 4 Jan Lahoda 2007-03-23 16:32:34 UTC
I have tried to reproduce this problem on a recent build, and I was not
successful. So I assume the problem was fixed altogether with some other code
generator fix. Please feel free to reopen (with as much info as possible) if the
problem appears again. Thank you very much.