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 48835 - Files opened after project was created are not closed when closing project
Summary: Files opened after project was created are not closed when closing project
Status: CLOSED DUPLICATE of bug 42422
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords:
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-09-10 12:05 UTC by Milan Kubec
Modified: 2006-03-24 10:25 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 Milan Kubec 2004-09-10 12:05:56 UTC
[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.
Comment 1 Jesse Glick 2004-09-10 16:34:14 UTC
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.
Comment 2 Milan Kubec 2004-09-13 09:40:18 UTC
Not reproducible for me on last custom build.
Comment 3 Milan Kubec 2004-09-15 11:09:57 UTC
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.
Comment 4 Jesse Glick 2004-09-15 17:23:06 UTC
Reproducible on Linux as well w/ Milan's last instructions.

Not a priority bug; unusual situation, no real harm.
Comment 5 Jiri Rechtacek 2004-12-04 12:37:16 UTC
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).
Comment 6 Jesse Glick 2004-12-04 17:46:30 UTC
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 ***
Comment 7 Marian Mirilovic 2005-07-12 10:18:14 UTC
closed