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.
1. Create class 'SimpleClass' and insert this code: //--------------------------- public class SimpleClass { private int a = 0; public SimpleClass(){ a = 1; } public void SimpleMethod(){}; } //--------------------------- 2. Select 'a = 1;' 3. Go to Refactor->Introduce Method... 4. Set Name: 'SimpleMethod', Access: 'public' than press Ok >> Method SimpleMethod() has been added, although is is already defined, so a bug is occured. Product Version: NetBeans IDE 7.3.1 (Build 201306052037) Java: 1.7.0_25; Java HotSpot(TM) 64-Bit Server VM 23.25-b01 Runtime: Java(TM) SE Runtime Environment 1.7.0_25-b30 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
*** This bug has been marked as a duplicate of bug 205076 ***