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 241285 - refactor -> rename works incorrectly some times
Summary: refactor -> rename works incorrectly some times
Status: RESOLVED INCOMPLETE
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-02 08:53 UTC by DaGore
Modified: 2014-07-24 09:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DaGore 2014-02-02 08:53:50 UTC
Hello!
I'm writing some small game project using netbeans ide 7.4.
It's not commercial project, thats why I'm writing it alone without any modelling.
Sometimes after using refactor -> rename ide breaks my code.
For example I have an abstract class called AbstractPotion that extends AbstractItem that extends Object.
After some time passed I have renamed AbstractPotion to AbstractPotionItem.
There was another class called HealingPotion that extends AbstractPotion before refactor operation.
After refactor process was done, the code line :

public class HealingPotion extends AbstractPotion {

become :

public class HealingPotion exteAbstractPotionItemtion {

It is not a big problem to fix this code, and this bug is not critical, but this is not the first time I have such bug even in this project.

Thanks!
Comment 1 Ralph Ruijs 2014-07-24 09:33:18 UTC
Hard to fix without a reproducible test case. There have been a lot of changes in the code generator. Please update to the latest version of NetBeans and if the problem occurs again, reopen this issue with steps to reproduce (preferably with a small test-project). Thanks!