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 222746 - IDE doesn't restart after deactivating plugins
Summary: IDE doesn't restart after deactivating plugins
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.3
Hardware: PC All
: P2 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2012-11-26 10:07 UTC by Jiri Rechtacek
Modified: 2012-11-30 02:39 UTC (History)
3 users (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 Jiri Rechtacek 2012-11-26 10:07:35 UTC
1) install latest IDE - netbeans-trunk-nightly-201211260002-javase-linux.sh
2) open Plugins|Installed
3) Select Database and invoke Deactivate
4) Choose Restart Now
=> IDE closes but will not start again
Comment 1 Jiri Rechtacek 2012-11-26 10:09:30 UTC
Note: Import options then Restart Now works correctly
Comment 2 Libor Fischmeistr 2012-11-26 13:05:51 UTC
Retested on Windows. It behaves exactly the same like on Linux. When deactivating plugin, it doesn't restart but when importing settings or updating the restart works properly.
Comment 3 Jiri Rechtacek 2012-11-27 20:30:26 UTC
Caused by impl. issue 221034
Calling "LifecycleManager.getDefault().exit();" doesn't terminate a method thus the execution continues. It means for the AU code that a fallback code for the case of unsuccessful exit is executed regardless how the exit ends.
Comment 4 Jiri Rechtacek 2012-11-27 20:38:05 UTC
The current behaviour breaks what API-users expected according to the Javadoc -http://bits.netbeans.org/dev/javadoc/org-openide-util/org/openide/LifecycleManager.html#exit()

Jardo, what do you think about this?
Comment 5 Jiri Rechtacek 2012-11-27 20:49:29 UTC
Jardo, what do you think about this?
Comment 6 Jaroslav Tulach 2012-11-28 12:50:57 UTC
ergonomics#130fd3437a74
Comment 7 Quality Engineering 2012-11-30 02:39:42 UTC
Integrated into 'main-golden', will be available in build *201211300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/130fd3437a74
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #222746: Test to verify call to LifecycleManager.exit() does not return until System.exit is called. Six incarnations of the test per each implementation of LifecycleManager and for a call outside and from EDT. Simplifying the shutdown sequence by eliminating the addShutdownHook when running in normal IDE mode.