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.
Summary: | RunLevel broken in "Run in Felix" mode | ||
---|---|---|---|
Product: | platform | Reporter: | maxnitribitt <maxnitribitt> |
Component: | Netigso | Assignee: | Jaroslav Tulach <jtulach> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P4 | ||
Version: | 7.1.2 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Suite to test 213906 |
Description
maxnitribitt
2012-06-10 13:59:45 UTC
Can you provide patch or at least a sample demo that I can use to test the fix? Created attachment 120631 [details]
Suite to test 213906
I created a small demo that has one module with a RunLevel. It's supposed to print to System.out when the project is run: ############## TestRunlevel started When you use "OSGi->Run in Felix" it doesn't. In "core.osgi" Activator the relevant code is in Line 251 onwards: if (showWindowSystem) { // XXX set ${jdk.home}? List<String> bisp = new ArrayList<String>(Arrays.asList(Introspector.getBeanInfoSearchPath())); bisp.add("org.netbeans.beaninfo"); // NOI18N Introspector.setBeanInfoSearchPath(bisp.toArray(new String[bisp.size()])); CoreBridge.getDefault().registerPropertyEditors(); for (RunLevel rl : Lookup.getDefault().lookupAll(RunLevel.class)) { rl.run(); } Splash.getInstance().setRunning(false); } ergonomics#3103395f5adb Integrated into 'main-silver', will be available in build *201405260001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/3103395f5adb User: Jaroslav Tulach <jtulach@netbeans.org> Log: #213906: It should be safe to execute registered RunLevel all the times |