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 239191

Summary: ClassCastException: org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj cannot be cast to org.openide.loaders.DataObject
Product: java Reporter: Jiri Prox <jiriprox>
Component: RefactoringAssignee: Ralph Ruijs <ralphbenjamin>
Status: RESOLVED WONTFIX    
Severity: normal    
Priority: P4    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 205835
Bug Depends on:    
Bug Blocks: 215138    
Attachments: stacktrace

Description Jiri Prox 2013-12-06 12:36:52 UTC
Build: NetBeans IDE Dev (Build 20131205-8d1f275229d9)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b49, Java(TM) SE Runtime Environment, 1.8.0-ea-b107
OS: Windows 7

User Comments:
jiriprox: Invoking rename when background scanning is running




Stacktrace: 
java.lang.ClassCastException: org.netbeans.modules.masterfs.filebasedfs.fileobjects.FileObj cannot be cast to org.openide.loaders.DataObject
   at org.netbeans.modules.refactoring.java.plugins.InstantRefactoringPerformer$UndoableWrapper$UndoableEditDelegate.<init>(InstantRefactoringPerformer.java:870)
   at org.netbeans.modules.refactoring.java.plugins.InstantRefactoringPerformer$UndoableWrapper$UndoableEditDelegate.<init>(InstantRefactoringPerformer.java:862)
   at org.netbeans.modules.refactoring.java.plugins.InstantRefactoringPerformer$UndoableWrapper.wrap(InstantRefactoringPerformer.java:838)
   at org.netbeans.editor.BaseDocument.fireUndoableEditUpdate(BaseDocument.java:1636)
   at org.netbeans.editor.BaseDocument.checkAndFireAtomicEdits(BaseDocument.java:2103)
   at org.netbeans.editor.BaseDocument.atomicUnlockImpl(BaseDocument.java:1765)
Comment 1 Jiri Prox 2013-12-06 12:36:53 UTC
Created attachment 142902 [details]
stacktrace
Comment 2 Ralph Ruijs 2014-01-07 23:16:52 UTC
The instant rename popup has been disabled in 8.0 (bug 215138, comment 7)
Comment 3 Ralph Ruijs 2014-01-07 23:38:00 UTC
*** Bug 238590 has been marked as a duplicate of this bug. ***
Comment 4 Martin Balin 2016-07-07 07:17:04 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss