Skip to content

Fix DependencyComputer missing bundles when they have different versions#2841

Merged
laeubi merged 1 commit intoeclipse-tycho:masterfrom
laeubi:fix_depe_computer_with_multiple_versions
Sep 19, 2023
Merged

Fix DependencyComputer missing bundles when they have different versions#2841
laeubi merged 1 commit intoeclipse-tycho:masterfrom
laeubi:fix_depe_computer_with_multiple_versions

Conversation

@laeubi
Copy link
Copy Markdown
Member

@laeubi laeubi commented Sep 19, 2023

Currently the DependencyComputer sorts only by bundle name (even though the comment for the code mentions the version as well) this can lead to the situation that if a bundle requires the same bundle in different versions (e.g. because it has actually different package names like javax -> jakarta) it only gets one of both on the classpath even though the P2 input suggests both.

This simply enhances the used key in the mak with the version as already suggested by the java comment.

Currently the DependencyComputer sorts only by bundle name (even though
the comment for the code mentions the version as well) this can lead to
the situation that if a bundle requires the same bundle in different
versions (e.g. because it has actually different package names like
javax -> jakarta) it only gets one of both on the classpath even though
the P2 input suggests both.

This simply enhances the used key in the mak with the version as already
suggested by the java comment.
@laeubi laeubi added the backport-to-tycho-4.0.x Can be added to a PR to trigger an automatic backport of the change label Sep 19, 2023
@github-actions
Copy link
Copy Markdown

Test Results

   561 files  ±0     561 suites  ±0   5h 4m 17s ⏱️ + 3m 50s
   362 tests ±0     356 ✔️ ±0    6 💤 ±0  0 ±0 
1 086 runs  ±0  1 067 ✔️ ±0  19 💤 ±0  0 ±0 

Results for commit ce7e249. ± Comparison against base commit 234f4f9.

@github-actions
Copy link
Copy Markdown

💚 All backports created successfully

Status Branch Result
tycho-4.0.x

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-to-tycho-4.0.x Can be added to a PR to trigger an automatic backport of the change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants