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 87329

Summary: Open recent file should listen on project rename
Product: utilities Reporter: Tomas Danek <musilt2>
Component: Open FileAssignee: David Simonek <dsimonek>
Status: VERIFIED FIXED    
Severity: blocker CC: anebuzelsky, mbalin
Priority: P2    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 87188    

Description Tomas Danek 2006-10-17 12:48:55 UTC
NetBeans IDE Dev (Build 200610161800)
1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b99
Windows XP version 5.1 running on x86
en_US (nb); Cp1252

1) create java app with main class
2) open and close main class
3) rename project (check Also rename project folder)
4) invoke File|Open recent file ->

org.openide.loaders.DataObjectNotFoundException:
MasterFileObject@1e1d547[C:/Documents and Settings/Tomas Musil/My
Documents/NetBeansProjects/JavaApplication15/src/javaapplication15/Main.java]
	at org.openide.loaders.DataObject.find(DataObject.java:469)
	at
org.netbeans.modules.openfile.RecentFileAction.fillSubMenu(RecentFileAction.java:115)
	at
org.netbeans.modules.openfile.RecentFileAction.popupMenuWillBecomeVisible(RecentFileAction.java:85)
	at javax.swing.JPopupMenu.firePopupMenuWillBecomeVisible(JPopupMenu.java:638)
	at javax.swing.JPopupMenu.setVisible(JPopupMenu.java:752)
Comment 1 Tomas Danek 2006-10-17 12:50:37 UTC
unlike in issue 87311, expected behaviour is to reflect such a change and look
for a file in a renamed project folder. P2 since this is one of M4 features. 
Comment 2 David Simonek 2006-10-17 15:27:08 UTC
After fix of 87252, no exception in thrown, file is just removed from
RecentList, which is IMHO not so critical problem, consider to lower priority to
P3...
Comment 3 David Simonek 2006-10-18 12:25:44 UTC
This is heads-up call: I won't be able to fix this issue into M4, as the fix is
really complicated, error prone and resources intensive. 

Current state is that moved file is deleted from recent list, regardless of
whether the file was moved manually or during project rename. No exceptions. I
consider current state as good enough (especially for M4) and IMHO it's not
worth to fix it.

Please remove the issue from M4 stoppers and consider to close as wontfix. Let
me know what you think.

Comment 4 Tomas Danek 2006-10-18 14:28:42 UTC
IMO for M4 this is good enough, but i disagree to close as wontfix.
Comment 5 David Simonek 2006-10-18 15:37:43 UTC
musilt2: I respect that you don't agree with wontfix, but I'm not able to fix
it. Does it make sense to have this issue opened forever? Surely no.
Comment 6 Tomas Danek 2006-10-18 16:09:19 UTC
ok, i do understand that fixing this is overcomplicated,  and probably would
badly affect performance. Can be consedered as fixed the way it is now.
Comment 7 David Simonek 2006-10-18 18:28:41 UTC
thank you.
Comment 8 Tomas Danek 2007-01-16 17:00:25 UTC
verified.