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.
[custom 20040910, JDK 1.5.0 RC] 1) Create Java Application project (main class opened in editor) 2) Create Java Class 3) Close the project Files in editor belonging to the project are not closed. They gets closed when user deletes the project from disk and reparse of cp is performed. If the project is opened (not created) files are closed correctly.
Works for me on Linux, 040909 custom. Please try on different platforms, recent builds, etc., see if there is variability. If reopening, assign to jrechtacek.
Not reproducible for me on last custom build.
It's reproducible: 1) Create Java Application Project with all deafults 2) Close the project 3) Delete the project from disk by OS tool 4) Create Java Application Project with all defaults and *with the same name* as in 1) 5) Close the project Error: Main class created when the project was created is not closed. It gets closed after the project is deleted from disk and IDE gets focus.
Reproducible on Linux as well w/ Milan's last instructions. Not a priority bug; unusual situation, no real harm.
Still reproducible in custom build 041204. Not problem in code handling close of being closed files. There is a problem that projectapi/FileOwnerQuery(FileObject) can return a wrong instance of project then closed project. Similar problem appears if J2SE project's build.xml is used by another FreeForm project. These case will break reopen project's files (see issue 44319).
For deleting a project: not currently supported with the GUI; in general may require closing the project first, and waiting at least fifteen seconds, and doing a GC; or restart to be safe. For reusing the same files in a new project: never supported, and newer versions will warn you if you try to do this. *** This issue has been marked as a duplicate of 42422 ***
closed