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: | Class deleted after a method safe delete refactoring | ||
---|---|---|---|
Product: | java | Reporter: | cfd <cfd> |
Component: | Refactoring | Assignee: | issues@java <issues> |
Status: | RESOLVED WONTFIX | ||
Severity: | blocker | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
cfd
2007-11-12 14:04:25 UTC
This refactoring is sensitive to cursor position, not editor selection. I guess, that if you selected 2 methods and invoked [Refactor | Safe Delete], cursor was not inside any method, but inside class and this is why class gets deleted. You're right, the cursor position is the key. Select 2 methods but not the last '}' (so the cursor stays into the last method block) > refactor > safe delete... > preview -> ok, only the second method will be deleted. Quite dangerous, so ALWAYS preview the refactoring process :) Resolving all issues with milestone "future" as LATER. If you feel strongly that it should be implemented please reopen and set the target milestone to "next". NetBeans.org Migration: changing resolution from LATER to WONTFIX |