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 - [65cat]Duplicate methods,constructors created upon using auto generation
Summary: [65cat]Duplicate methods,constructors created upon using auto generation
Status: RESOLVED DUPLICATE of bug 142199
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P2 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-30 19:10 UTC by rajivderas
Modified: 2008-10-17 06:49 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Duplicates in editor (122.98 KB, text/plain)
2008-07-30 19:20 UTC, rajivderas
Details

Note You need to log in before you can comment on or make changes to this bug.
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