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 178410 - invokeWhenUIReady is sometimes executed before OptionProcessor is called
Summary: invokeWhenUIReady is sometimes executed before OptionProcessor is called
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Launchers&CLI (show other bugs)
Version: 6.x
Hardware: PC All
: P2 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-10 02:06 UTC by oliverrettig
Modified: 2010-02-10 02:20 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 oliverrettig 2009-12-10 02:06:12 UTC
Module A implements OptionProcessor. The command line processing results in some Java Propertys.

Module B uses ModuleInstalled.restored() and executes some code by invoking invokeWhenUIReady based on the Java Propertys saved by Module A

Sometimes it happens that the code executed by invokeWhenUIReady is executed before the option processor is invoked. 

I cauld reproduce this effect on WindowsXP and also Linux.

If I have defined a Module dependency: Module B depends on Module A, I cauld not reproduce this effect. But maybe the problem is still there.
Comment 1 Stanislav Aubrecht 2009-12-10 03:21:52 UTC
i'm not sure the api guarantees the order of execution for OptionProcessor and invokeWhenUIReady
reassigning for evaluation
Comment 2 Jaroslav Tulach 2010-02-01 09:17:50 UTC
I want to fix this for 6.9.
Comment 3 Jaroslav Tulach 2010-02-09 07:20:02 UTC
core-main#35b5cdc45017
Comment 4 Quality Engineering 2010-02-10 02:20:54 UTC
Integrated into 'main-golden', will be available in build *201002100200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/35b5cdc45017
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #178410: process CLI options before additonal RunLevels (including UI) are started