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.
Created attachment 151509 [details] Source file to reproduce the bug. I have a function named "i", and a class InternalApi. When I select "Fix uses", Netbeans replaces all "i" function calls to "InternalApi" without asking anything. i() => InternalApi() How to reproduce: see "index.php" attachment, add this file to a new project, and select "Fix uses". The bug seems to appear with all class names starting with "I" and ending with "Api" Product Version = NetBeans IDE Dev (Build 201501140001) Operating System = Linux version 3.13.0-32-generic running on i386 Java; VM; Vendor = 1.8.0_25 Runtime = Java HotSpot(TM) Client VM 25.25-b02
I cannot reproduce your problem in the current dev build. Could you please verify it? Simply reopen this issue, thanks. Product Version: NetBeans IDE Dev (Build 20160610-49331e2a0591) Java: 1.8.0_91; Java HotSpot(TM) 64-Bit Server VM 25.91-b14 Runtime: Java(TM) SE Runtime Environment 1.8.0_91-b14 System: Linux version 4.2.0-38-generic running on amd64; UTF-8; cs_CZ (nb)
Just reproduced the problem in the freshest dev Netbeans under Windows. Product Version: NetBeans IDE Dev (Build 201606180002) Java: 1.8.0_60; Java HotSpot(TM) Client VM 25.60-b23 Runtime: Java(TM) SE Runtime Environment 1.8.0_60-b27 System: Windows XP version 5.1 running on x86; Cp1251; ru_RU (nb) It's important to add the file to the project. The problem does not appear on files-not-in-project.
Strange, I still cannot reproduce your issue using the attached file. Where exactly do you have your cursor/caret? What exactly you do then? Just run CTRL + SHIFT + i? Thanks.
BTW this issue seems to me to be a possible duplicate of issue #249140 which I can reproduce. Once it is fixed, please feel free to verify it (and possibly reopen this issue if I am wrong). Thanks for your cooperation. *** This bug has been marked as a duplicate of bug 249140 ***
The issue seems to be resolved. Thank you.