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 47035

Summary: Need to get a new FileBuiltQuery.Status after moving a class to a new package
Product: java Reporter: Jesse Glick <jglick>
Component: UnsupportedAssignee: Jan Pokorsky <jpokorsky>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P3    
Version: 4.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 30085    
Bug Blocks: 41448, 45694    

Description Jesse Glick 2004-08-10 00:27:17 UTC
With the fix for #45694, renaming a file
(FileObject.rename()) properly updates the compile
badge. However if you move the class to a new
package, the badge no longer works, since it is
based on FileObject's, not DataObject's, and the
primaryFile changed.

JavaNode probably needs to listen to
JavaDataObject.PROP_PRIMARY_FILE and reset the
upToDate field (and recheck the icon) if it changes.
Comment 1 Jesse Glick 2004-08-10 00:29:43 UTC
The GlobFileBuiltQuery itself cannot listen to file moves; see issue
#30085.
Comment 2 Jesse Glick 2004-09-28 15:47:30 UTC
Tracking as a build-system-related issue that should be fixed.
Comment 3 Martin Matula 2004-10-25 16:10:58 UTC
Honzo, could you please look at this?
Comment 4 Jesse Glick 2004-10-27 00:20:50 UTC
*** Issue 49461 has been marked as a duplicate of this issue. ***
Comment 5 Martin Matula 2004-10-29 09:20:06 UTC
*** Issue 47388 has been marked as a duplicate of this issue. ***
Comment 6 ehucka 2005-01-11 13:10:42 UTC
old target milestone, please re-evaluate
Comment 7 Jan Pokorsky 2005-02-01 14:39:20 UTC
added workaround for issue #30085 in

/cvs/java/src/org/netbeans/modules/java/JavaNode.java
new revision: 1.124; previous revision: 1.123