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 16085 - Switching project not finished.
Summary: Switching project not finished.
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords:
: 16308 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-10-01 17:13 UTC by Jan Zajicek
Modified: 2003-07-01 14:17 UTC (History)
1 user (show)

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 Jan Zajicek 2001-10-01 17:13:21 UTC
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.
Comment 1 Vitezslav Stejskal 2001-10-01 17:44:09 UTC
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?
Comment 2 Jan Pokorsky 2001-10-03 10:42:46 UTC
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.
Comment 3 Vitezslav Stejskal 2001-10-04 17:41:01 UTC
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.
Comment 4 emmanuel 2001-10-05 21:34:39 UTC
*** Issue 16308 has been marked as a duplicate of this issue. ***
Comment 5 Milan Kubec 2002-10-18 11:37:33 UTC
Verified, not reproducible.
Comment 6 Quality Engineering 2003-07-01 14:17:19 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.