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.
Product Version: NetBeans IDE Dev (Build 20080328094427) Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11 System: Windows XP version 5.1 running on x86; Cp1250; cs_CZ (nb) Refactoring does not check method return type when changing type of field. It can produce uncompilable code. Steps to reproduce: 1) have a class (Iface is empty interface): public class Main implements Iface { static Main default; static Main getDefault() { return default; } } 2) call User supertype on Main and select Iface -> public class Main implements Iface { static Iface default; static Main getDefault() { return default; // <---- not compatible types } }
Sorry I was typing too fast. Reassigning back.
moving opened issues from TM <= 6.1 to TM=Dev
It relates to issue 128676.
please evaluate. thanks
Changeset: 34edd0682d38 Author: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> Date: 2011-09-07 17:17 Message: Issue #131406 - [Use Supertype] Refactoring does not check method return type
*** Bug 172346 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/34edd0682d38 User: Ralph Benjamin Ruijs <ralphbenjamin@netbeans.org> Log: Issue #131406 - [Use Supertype] Refactoring does not check method return type