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.
I was sure this was filed already, but I just cannot find it in Issuezilla after quite a while looking. If you call OpenProjects.getDefault().open/close(Project[]), files associated with those projects should be opened or closed just as if you had opened or closed the projects via the GUI. But in fact although open() reopens associated files, close() does not save associated files. The call to ProjectUtilities.closeAllDocuments in CloseProject should be moved to OpenProjectList.close.
Issue #59041?
That's it. *** This issue has been marked as a duplicate of 59041 ***