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

Summary: Renaming erases 'catch' blocks
Product: java Reporter: Kirill Sorokin <ksorokin>
Component: UnsupportedAssignee: Pavel Flaska <pflaska>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Exception

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.