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: | Rename of local variables doesn't work inside of method with guarded blocks | ||
---|---|---|---|
Product: | editor | Reporter: | Jana Maleckova <janie> |
Component: | Refactoring | Assignee: | Jan Pokorsky <jpokorsky> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | belkorin |
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | image documenting problem |
Description
Jana Maleckova
2007-06-04 22:03:32 UTC
This is inside event handler where only the method boundaries are guarded, but the code inside the method is not protected. This should be handled by java refactoring. Reassigning to guarded block master. Detection of guarded block fails in this case. *** Issue 107414 has been marked as a duplicate of this issue. *** *** Issue 108063 has been marked as a duplicate of this issue. *** the "find usages" function also thinks that inside of a method bounded by guarded blocks is a read-only block, as shown in the attachment. Product Version: NetBeans IDE Dev (Build 200706270000) Java: 1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb) Created attachment 44552 [details]
image documenting problem
This error can be easily reproduced also when using 'Change method parameters' for a method defined inside form file, and having this method called inside of a 'guarded' method. --- Product Version: NetBeans IDE Dev (Build 070717) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05 System: Linux version 2.6.12-1.1390_FC4smp running on i386; UTF-8; en_US (nb) Userdir: /home/ms159439/.netbeans/dev fixed in /cvs/refactoring/api/src/org/netbeans/modules/refactoring/spi/RefactoringElementsBag.java new revision: 1.17; previous revision: 1.16 v. *** Issue 113162 has been marked as a duplicate of this issue. *** |