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.
Use Super type can change program behavior. It does not check that after changing type another variant of overloaded method can by called. Steps to reproduce: 1) have class SubClass extending class SuperClass 2) have a class Test: public class Test { public void method() { SubClass sub = new SubClass(); action(sub); } public void action(SubClass sc) { System.out.println("Called on subclass"); sc.subMethod(); } public void action(SuperClass sc) { System.out.println("Called on superclass"); sc.superMethod(); } public static void main(String[] args) { new Test().method(); } } 3) call Use Supertype on SubClass and select SuperClass as target type -> the type of 'sub' is changed to SuperType and as result another variant of action method is called
reproducible
later
NetBeans.org Migration: changing resolution from LATER to WONTFIX