| Summary: | API tools error message in SWT | ||
|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Sravan Kumar Lakkimsetti <sravankumarl> |
| Component: | SWT | Assignee: | Vikas Chandra <Vikas.Chandra> |
| Status: | VERIFIED FIXED | QA Contact: | Sravan Kumar Lakkimsetti <sravankumarl> |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel_megert, ericwill, niraj.modi, Vikas.Chandra |
| Version: | 4.14 | ||
| Target Milestone: | 4.14 M3 | ||
| Hardware: | PC | ||
| OS: | All | ||
| See Also: |
https://bugs.eclipse.org/bugs/show_bug.cgi?id=545804 https://git.eclipse.org/r/151847 https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=15f1b9aa1fd77f7e62bbb292447fc0fcdc7a15dd https://git.eclipse.org/r/151870 https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=bd24052e1d701845adabcc2e0eaa36973a445323 https://bugs.eclipse.org/bugs/show_bug.cgi?id=552605 |
||
| Whiteboard: | 4.14 M2 | ||
|
Description
Sravan Kumar Lakkimsetti
See https://www.eclipse.org/eclipse/news/4.7/M5/#PDE and https://bugs.eclipse.org/bugs/show_bug.cgi?id=496145 Adding a field to a class is a breaking change. https://git.eclipse.org/c/platform/eclipse.platform.swt.git/diff/bundles/org.eclipse.swt/Eclipse%20SWT/common/org/eclipse/swt/SWT.java?id=049ef11cbbb59d85197809bada18506a5b1ae0fe And then a filter is added to suppress this https://git.eclipse.org/c/platform/eclipse.platform.swt.git/diff/bundles/org.eclipse.swt/.settings/.api_filters?id=049ef11cbbb59d85197809bada18506a5b1ae0fe And then minor version is increased https://git.eclipse.org/c/platform/eclipse.platform.swt.git/diff/bundles/org.eclipse.swt/META-INF/MANIFEST.MF?id=049ef11cbbb59d85197809bada18506a5b1ae0fe So API tool complains about "The minor version should be the same for version 3.113.0, since no new APIs have been added since version 3.112.0" I will recommend adding a filter for this. New Gerrit change created: https://git.eclipse.org/r/151847 In this case we have added new API field to an API class according to https://wiki.eclipse.org/Evolving_Java-based_APIs_2#Evolving_API_Classes it is binary compatible. but API tools is reporting to increment Major version. Here is the log Description Resource Path Location Type The field org.eclipse.swt.SWT.IMAGE_SVG has been added to a class SWT.java /org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt line 4247 Compatibility Problem The major version should be incremented in version 3.113.0, since API breakage occurred since version 3.112.0 MANIFEST.MF /org.eclipse.swt/META-INF line 5 Version Numbering Problem Gerrit change https://git.eclipse.org/r/151847 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=15f1b9aa1fd77f7e62bbb292447fc0fcdc7a15dd *** Bug 552604 has been marked as a duplicate of this bug. *** Opened Bug 552605 for future M3 work. (In reply to Vikas Chandra from comment #1) > See https://www.eclipse.org/eclipse/news/4.7/M5/#PDE > and https://bugs.eclipse.org/bugs/show_bug.cgi?id=496145 > > Adding a field to a class is a breaking change. > > https://git.eclipse.org/c/platform/eclipse.platform.swt.git/diff/bundles/org. > eclipse.swt/Eclipse%20SWT/common/org/eclipse/swt/SWT. > java?id=049ef11cbbb59d85197809bada18506a5b1ae0fe > > > And then a filter is added to suppress this > > https://git.eclipse.org/c/platform/eclipse.platform.swt.git/diff/bundles/org. > eclipse.swt/.settings/. > api_filters?id=049ef11cbbb59d85197809bada18506a5b1ae0fe > > > And then minor version is increased > https://git.eclipse.org/c/platform/eclipse.platform.swt.git/diff/bundles/org. > eclipse.swt/META-INF/MANIFEST.MF?id=049ef11cbbb59d85197809bada18506a5b1ae0fe > > So API tool complains about "The minor version should be the same for > version 3.113.0, since no new APIs have been added since version 3.112.0" > > I will recommend adding a filter for this. Did I miss a step when adding this API? If so please do elaborate, as I want to document it for future API changes. Bug 552605 will ensure that all the versioning issues are errors and not warning. An extra warning added can be overlooked. Also it is a good practice to check if a particular gerrit increases the number of warning in the plugin. report http://download.eclipse.org/eclipse/downloads/drops4/I20191031-1800/apitools/analysis/html/index.html shows the warning I am investigating this ! New Gerrit change created: https://git.eclipse.org/r/151870 Gerrit change https://git.eclipse.org/r/151870 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=bd24052e1d701845adabcc2e0eaa36973a445323 |