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 201504150001) Java: 1.8.0_25; Java HotSpot(TM) 64-Bit Server VM 25.25-b02 Runtime: Java(TM) SE Runtime Environment 1.8.0_25-b18 System: Windows 7 version 6.1 running on amd64; Cp1250; pl_PL (nb) When I try to call a method which doesn't exist, there is a hint to create this method. But when the method exists, but have incompatible parameters, no hints are offered. Editor should offer at least the following two hints: 1. Change method signature to match the parameters. 2. Create an overloaded method with matching parameters. Testcase: public class CreateMethod { public void method(String str) { } public void demo() { method(1); noMethod(1); } } For "noMethod" there is a hint, for "method" there isn't. I have to change "method" to for example "method2", use hint to create it, and then refactor to rename it back to "method".
Created attachment 153243 [details] Missing hint on incompatible parameters.
Created attachment 153244 [details] Hint to create the missing method.
Created attachment 153245 [details] Eclipse offers both hints and even more.
Created attachment 153246 [details] Eclipse also offers more hints when the method doesn't exist
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/8e69bbfdc411
Integrated into 'main-silver', will be available in build *201504201004* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/8e69bbfdc411 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #251899: Offer hints for incompatible parameters - fixed.
Verified with 201504280001