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.

Bug 142297

Summary: [65cat]Duplicate methods,constructors created upon using auto generation
Product: editor Reporter: rajivderas <rajivderas>
Component: Completion & TemplatesAssignee: Dusan Balek <dbalek>
Status: RESOLVED DUPLICATE    
Severity: blocker CC: jkovalsky
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: Duplicates in editor

Description rajivderas 2008-07-30 19:10:30 UTC
Create List<String> list = new ArrayList<String>();

From "Insert Code" pop-up menu in editor select "Delegate Method" 

Select the "list" variable field as the field to generate delegates for

Then select a method to generate delegates for [ex:add(E e) ]

The delegated method is created twice in the editor
Comment 1 rajivderas 2008-07-30 19:17:42 UTC
Create a constructor or get/set method or even perform a delegate using the "autogenerate" option available in the
"Insert Code" pop-up menu in the editor.
You will find duplicate method for every auto generate method.
Comment 2 rajivderas 2008-07-30 19:20:09 UTC
Created attachment 66109 [details]
Duplicates in editor
Comment 3 Petr Dvorak 2008-07-30 19:20:41 UTC
Yes, it should be already fixed in the latest dev build (from the 30/07/2008, approx. 14pm).
Comment 4 Petr Dvorak 2008-07-30 19:21:41 UTC
Yes, it should be already fixed in the latest dev build (from the 30/07/2008, approx. 14pm).

*** This issue has been marked as a duplicate of 142199 ***
Comment 5 rajivderas 2008-10-17 06:49:42 UTC
Adding [65cat] since this is not duplicated by myself