Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for API error on SWT on 4.34 master #1387

Closed
wants to merge 1 commit into from

Conversation

iloveeclipse
Copy link
Member

Don't try to add EE to bundles that don't have any requirements defined in manifest.

ManifestUtils.getRequiredExecutionEnvironments() currently returns "generic" bundle runtime requirements from OSGI for bundles that don't define anything, and it seem to be violation of the org.osgi.framework.wiring.BundleRevision.getDeclaredRequirements(String) contract that isn't supposed to return anything if nothing is specified in the manifest.

At least for API baseline tooling use of OSGI generic requirements not specified in the manifest do not make sense, as we compare what's written in the manifest and not what is derived from the platform or host.

Fixes #1386

Copy link

github-actions bot commented Sep 4, 2024

Test Results

   285 files  ±0     285 suites  ±0   51m 14s ⏱️ -47s
 3 580 tests ±0   3 504 ✅ ±0   76 💤 ±0  0 ❌ ±0 
10 932 runs  ±0  10 701 ✅ ±0  231 💤 ±0  0 ❌ ±0 

Results for commit 84827f7. ± Comparison against base commit 0953a33.

♻️ This comment has been updated with latest results.

Don't try to add EE to bundles that don't have any requirements defined
in manifest.

ManifestUtils.getRequiredExecutionEnvironments() currently returns
"generic" bundle runtime requirements from OSGI for bundles that don't
define anything, and it seem to be violation of the
org.osgi.framework.wiring.BundleRevision.getDeclaredRequirements(String)
contract that isn't supposed to return anything if nothing is specified
in the manifest.

At least for API baseline tooling use of OSGI generic requirements not
specified in the manifest do not make sense, as we compare what's
written in the manifest and not what is derived from the platform or
host.

Fixes eclipse-pde#1386
@HannesWell
Copy link
Member

Obsolete with #1395, thank you nevertheless!

@HannesWell HannesWell closed this Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API error on SWT on a 4.34 master
2 participants