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 - Need to get a new FileBuiltQuery.Status after moving a class to a new package
Summary: Need to get a new FileBuiltQuery.Status after moving a class to a new package
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Jan Pokorsky
URL:
Keywords:
: 47388 49461 (view as bug list)
Depends on: 30085
Blocks: 41448 45694
  Show dependency tree
 
Reported: 2004-08-10 00:27 UTC by Jesse Glick
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

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