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.
Replace by string hint produces invalid code Steps to reproduce: 1) apply hint on following code: int x = 3; StringBuffer s = new StringBuffer(x); String y = s.toString(); -> int x = 3; String s = new StringBuffer(x); // <- error String y = s; BTW the hint is in category "perf", it should probably be "Performance" Product Version: NetBeans IDE Dev (Build 20131202-95d36d354e99) Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b49 Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b107 System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb) User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev
Fixed in http://hg.netbeans.org/jet-main/rev/052962cab80c
*** Bug 252830 has been marked as a duplicate of this bug. ***