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 202251 - Refactoring code might lead to uncompilable code
Summary: Refactoring code might lead to uncompilable code
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2011-09-16 21:34 UTC by javydreamercsw
Modified: 2011-09-21 08:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample project (12.08 KB, application/x-java-archive)
2011-09-16 21:37 UTC, javydreamercsw
Details

Note You need to log in before you can comment on or make changes to this bug.
Description javydreamercsw 2011-09-16 21:34:41 UTC
Product Version = NetBeans IDE Dev (Build 201109141017)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.7.0
Runtime = Java HotSpot(TM) Client VM 21.0-b17

I have two methods, let's say A and B, where A is just a wrapper of B setting some default parameters. Method A and B are named the same but have different amount of fields (overloaded methods). I saw a typo in both method's names so I went ahead and fixed them using the refactoring>rename. Method A was renamed correctly, but when I tried to refactor method B from within method A it was refactored to super.A.

I'll attach a sample project in a bit.
Comment 1 javydreamercsw 2011-09-16 21:37:54 UTC
Created attachment 110827 [details]
Sample project
Comment 2 javydreamercsw 2011-09-16 21:38:42 UTC
Just refactor the method in line 15 to compareNumberStrings.
Comment 3 Jan Becicka 2011-09-19 08:43:44 UTC
regression caused by fix of issue 195070
Comment 4 Ralph Ruijs 2011-09-19 10:47:08 UTC
Changeset: 9206ba6d27ee
Author:    Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Date:      2011-09-19 12:44
Message:   Issue #202251 - Refactoring code might lead to uncompilable code
Comment 5 Quality Engineering 2011-09-21 08:00:41 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/9206ba6d27ee
User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org>
Log: Issue #202251 - Refactoring code might lead to uncompilable code