Community
Participate
Working Groups
Right now there is not option to control the PDE compiler error "Bundles with a Service-Component should set the Bundle-ActivationPolicy to lazy." It is always reported as warning /** * Verifies that if a Service-Component exists then a corresponding Bundle-ActivationPolicy is present. */ private void validateServiceComponent() { IHeader header = getHeader(ICoreConstants.SERVICE_COMPONENT); if (header == null) { return; } if (getHeader(Constants.BUNDLE_ACTIVATIONPOLICY) != null) { return; } report(PDECoreMessages.BundleErrorReporter_serviceComponentLazyStart, header.getLineNumber() + 1, CompilerFlags.WARNING, PDEMarkerFactory.M_SERVICECOMPONENT_MISSING_LAZY, PDEMarkerFactory.CAT_OTHER); } There should be an option to control its severity. Once that option is set, configure severity quick fix should be available.
This new PDE compiler warning was added via Bug 476691
Move to 4.7.2
New Gerrit change created: https://git.eclipse.org/r/110428
Gerrit change https://git.eclipse.org/r/110428 was merged to [master]. Commit: http://git.eclipse.org/c/pde/eclipse.pde.ui.git/commit/?id=9ef70f52c703e42768bbc5b710b21fd6578fb882
verified on Version: Photon (4.8) Build id: I20171023-2000
Need polish, see bug 526823.