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 62030

Summary: NoSuchElementException when extracting interface from Enum
Product: editor Reporter: Jiri Prox <jiriprox>
Component: RefactoringAssignee: issues@java <issues>
Status: VERIFIED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: exception

Description Jiri Prox 2005-08-10 12:02:45 UTC
NB 4.2 (2005008091800)
JDK 1.5.0_04

NoSuchElementException is thrown in console when extacting interface from enum.
Undo refactoring is not enabled.

steps to reproduce:
1) open/create some enum containig methods
2) call Extract Interface on this enum
3) fill in opened dialog and confirm

-> java.util.NoSuchElementException
        at java.util.LinkedList.getFirst(LinkedList.java:109)
        at
org.netbeans.modules.javacore.internalapi.UndoManager.addItem(UndoManager.java:267)
Comment 1 Jiri Prox 2005-08-10 12:03:54 UTC
Created attachment 23629 [details]
exception
Comment 2 Tomas Hurka 2005-08-19 15:19:47 UTC

*** This issue has been marked as a duplicate of 61510 ***
Comment 3 Jiri Prox 2006-01-17 14:18:59 UTC
verified duplicate