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.
Sometimes ... I know that this isn't good bug report, but I have talked with Vita about this and he knows how to fix this. So, sometimes when switching between project, the new project isn't opened and the ide stays in the old one. Note that some exceptions from winsys are thrown, that may broke this operation. So it will be good to catch them and display them in the project error dialog or somewhere else, but allow the switch process to continue. Marking this as P2, feel free to lower this.
Usually it happens when the SessionManager.setLayer call dies in some listeneres (e.g. winsys). The exception thrown from any listener should be handled probably in SessionManager (CCing Jan Pokorsky) otherwise caller can't be sure that the new layer was set. The setLayer can throw exception, but in that case previous layer must be preserved. Honzo, what do you think?
Vito, do you mean to catch Throwable? Neither firePropertChange nor propertyChange method does not declare any exception so I think it is a bug of these listeners.
Sure, exceptions thrown from listeners are the problem of those listeners, but the session manager should safely switch the layer otherwise system gets in undefined state. I have added couple of try-catch blocks in setProjectLayer method, which report exceptions being catched, but don't stop execution of the code in that method. I have also removed IOException from the signature of setProjectLayer method. Changes made in main trunk.
*** Issue 16308 has been marked as a duplicate of this issue. ***
Verified, not reproducible.
Resolved for 3.4.x or earlier, no new info since then -> closing.