Bug 516955 - No option to control PDE compiler warning 'Bundles with a Service-Component should set the Bundle-ActivationPolicy to lazy.'
Summary: No option to control PDE compiler warning 'Bundles with a Service-Component s...
Status: VERIFIED FIXED
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.7   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 4.8 M3   Edit
Assignee: Vikas Chandra CLA
QA Contact:
URL:
Whiteboard:
Keywords: noteworthy
Depends on:
Blocks: 526823
  Show dependency tree
 
Reported: 2017-05-19 06:35 EDT by Vikas Chandra CLA
Modified: 2017-11-03 11:55 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vikas Chandra CLA 2017-05-19 06:35:14 EDT
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.
Comment 1 Vikas Chandra CLA 2017-05-19 06:37:17 EDT
This new PDE compiler warning was added via Bug 476691
Comment 2 Vikas Chandra CLA 2017-08-22 01:56:58 EDT
Move to 4.7.2
Comment 3 Eclipse Genie CLA 2017-10-20 05:25:37 EDT
New Gerrit change created: https://git.eclipse.org/r/110428
Comment 5 Vikas Chandra CLA 2017-10-25 04:48:08 EDT
verified on
Version: Photon (4.8)
Build id: I20171023-2000
Comment 6 Dani Megert CLA 2017-11-03 11:55:57 EDT
Need polish, see bug 526823.