| Summary: | [regression] Eclipse 4.10 has ds.delayed.keepInstances=false per default | ||
|---|---|---|---|
| Product: | [Eclipse Project] Equinox | Reporter: | Simeon Andreev <simeon.danailov.andreev> |
| Component: | Framework | Assignee: | Andrey Loskutov <loskutov> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | christian.dietrich.opensource, loskutov, tjwatson |
| Version: | 4.10 | ||
| Target Milestone: | 4.10 M3 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| See Also: |
https://bugs.eclipse.org/bugs/show_bug.cgi?id=510673 https://bugs.eclipse.org/bugs/show_bug.cgi?id=538737 https://git.eclipse.org/r/131663 https://git.eclipse.org/c/equinox/rt.equinox.framework.git/commit/?id=7d65c3565b61618454a809b02ea5d09d120db565 |
||
| Whiteboard: | |||
|
Description
Simeon Andreev
Workaround seems to be to specify VM argument: -Dds.delayed.keepInstances=true (In reply to Simeon Andreev from comment #1) > Workaround seems to be to specify VM argument: > -Dds.delayed.keepInstances=true Or you can place that in the config.ini file. (In reply to Thomas Watson from comment #2) > (In reply to Simeon Andreev from comment #1) > > Workaround seems to be to specify VM argument: > > -Dds.delayed.keepInstances=true > > Or you can place that in the config.ini file. Sure we can do what we want in our product, but the question how we should fix this on the SDK level, because not only our code doesn't expect activate/deactivate that often (see bug 510673). This is a big regression in 4.10, at least from my point of view. I do not know what is the best way to solve it, because everyone got it "for free" before, and the "old" activate/deactivate behavior is there since years (or even since ever). At the end, we need this commit somewhere else: http://git.eclipse.org/c/equinox/rt.equinox.bundles.git/commit/?id=83395839c881d4ed7604e825a38c7d1b6dd41119 or we restore the ds bundle back. (In reply to Andrey Loskutov from comment #3) > (In reply to Thomas Watson from comment #2) > > (In reply to Simeon Andreev from comment #1) > > > Workaround seems to be to specify VM argument: > > > -Dds.delayed.keepInstances=true > > > > Or you can place that in the config.ini file. > > Sure we can do what we want in our product, but the question how we should > fix this on the SDK level, because not only our code doesn't expect > activate/deactivate that often (see bug 510673). > > This is a big regression in 4.10, at least from my point of view. I do not > know what is the best way to solve it, because everyone got it "for free" > before, and the "old" activate/deactivate behavior is there since years (or > even since ever). > > At the end, we need this commit > somewhere else: > http://git.eclipse.org/c/equinox/rt.equinox.bundles.git/commit/ > ?id=83395839c881d4ed7604e825a38c7d1b6dd41119 or we restore the ds bundle > back. I suggest we set a default setting in org.eclipse.core.runtime.adaptor.EclipseStarter.getConfiguration() similar to how we set org.eclipse.osgi.internal.framework.EquinoxConfiguration.PROP_COMPATIBILITY_BOOTDELEGATION Something like this: String dsDelayedKeepInstances = System.getProperty("ds.delayed.keepInstances"); if (dsDelayedKeepInstances != null) { // The system properties have a specific setting; use it configuration.put("ds.delayed.keepInstances", dsDelayedKeepInstances); } else { // set a default value; but this value can be overriden by the config.ini configuration.put("ds.delayed.keepInstances" + EquinoxConfiguration.PROP_DEFAULT_SUFFIX, "true"); //$NON-NLS-1$ } New Gerrit change created: https://git.eclipse.org/r/131663 (In reply to Eclipse Genie from comment #5) > New Gerrit change created: https://git.eclipse.org/r/131663 Thomas, this is your proposal as I understand it. Gerrit change https://git.eclipse.org/r/131663 was merged to [master]. Commit: http://git.eclipse.org/c/equinox/rt.equinox.framework.git/commit/?id=7d65c3565b61618454a809b02ea5d09d120db565 (In reply to Andrey Loskutov from comment #6) > (In reply to Eclipse Genie from comment #5) > > New Gerrit change created: https://git.eclipse.org/r/131663 > > Thomas, this is your proposal as I understand it. Thanks, I merged. |