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 200810230201) Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13 System: Linux version 2.6.24-19-generic running on i386; UTF-8; en_US (nb) This is another issue from the category "IDE generates code and then displays a hint suggesting how to fix it". I hope there will not be a discussion as with some other issues of this kind:). When you generate a delegate method for a static method, a hint suggesting replacing an instance with a class reference is shown. For example: 1. Have a class like this: class A { private String S; } 2. Invoke Insert Code > Delegate method 3. Select "S" in the left part of the dialog and "copyValueOf" in the right part of a dialog, confirm -> Resulting code is: class A { private String S; public static String copyValueOf(char[] data) { return S.copyValueOf(data); // hint: Replace with class reference => return String.copyValueOf(data); } }
Overtake.
Reassigning all moonko's java/source bugs to myself.
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss