| Summary: | common test feature builds failing after removal of IPluginDescriptor and related API | ||
|---|---|---|---|
| Product: | [WebTools] WTP Common Tools | Reporter: | Nitin Dahyabhai <thatnitind> |
| Component: | wst.common | Assignee: | Nitin Dahyabhai <thatnitind> |
| Status: | RESOLVED FIXED | QA Contact: | Carl Anderson <ccc> |
| Severity: | blocker | ||
| Priority: | P3 | CC: | daniel_megert, ed, nboldt |
| Version: | 3.13 | ||
| Target Milestone: | 3.14 | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: |
https://bugs.eclipse.org/bugs/show_bug.cgi?id=475944 https://git.eclipse.org/r/139457 https://git.eclipse.org/c/webtools-common/webtools.common.git/commit/?id=d75321b1616b7ee3c9caf8c1d1db40cc7003f215 https://git.eclipse.org/r/139953 https://git.eclipse.org/c/webtools-common/webtools.common.git/commit/?id=899671804d3f482e01beafdc126ea30ea5222f30 |
||
| Whiteboard: | |||
|
Description
Nitin Dahyabhai
This change is also breaking downstream projects like javaee and jsf. [ERROR] The import org.eclipse.core.runtime.IPluginDescriptor cannot be resolved -- https://hudson.eclipse.org/webtools/view/webtools_CI/job/webtools-common_master/572/console [ERROR] The constructor EMFPlugin.EclipsePlugin(IPluginDescriptor) is undefined -- https://hudson.eclipse.org/webtools/view/webtools_CI/job/webtools-javaee_master/396/console [ERROR] The import org.eclipse.core.runtime.IPluginDescriptor cannot be resolved -- https://hudson.eclipse.org/webtools/view/webtools_CI/job/webtools-jsf_master/502/console New Gerrit change created: https://git.eclipse.org/r/139457 Gerrit change https://git.eclipse.org/r/139457 was merged to [master]. Commit: http://git.eclipse.org/c/webtools-common/webtools.common.git/commit/?id=d75321b1616b7ee3c9caf8c1d1db40cc7003f215 Fixed in common. Downstream projects are a little more challenging. You seem to be ignoring the standard idiom that the default constructor populates the singleton instance.
Your deletion of:
public TestCollectorPlugin(IPluginDescriptor descriptor) {
super(descriptor);
instance = this;
dataModelVerifierExt = descriptor.getExtensionPoint("DataModelVerifier");
}
solves the problem with the deprecated IPluginDescriptor but leaves the instance orphaned. Surely you meant?
public TestCollectorPlugin() {
instance = this;
RegistryFactory.getRegistry().getExtensionPoint(PLUGIN_ID, "DataModelVerifier");
}
New Gerrit change created: https://git.eclipse.org/r/139953 (In reply to Ed Willink from comment #5) > You seem to be ignoring the standard idiom that the default constructor > populates the singleton instance. Good catch, but there were no accessor methods for the singleton, and I believe nothing accessing it directly, either. Checking an additional change to remove it outright (arguably the entire class is unnecessary). Gerrit change https://git.eclipse.org/r/139953 was merged to [master]. Commit: http://git.eclipse.org/c/webtools-common/webtools.common.git/commit/?id=899671804d3f482e01beafdc126ea30ea5222f30 |