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

tester: Use CompositeClassLoader for TCCL when loading tests #5743

Merged
merged 2 commits into from
Aug 7, 2023

Conversation

bjhargrave
Copy link
Member

We use CompositeClassLoader to composite the tester bundle's class
loader with the original TCCL when loading and executing tests. This
will provide visibility classes and resource from the original TCCL.

Fixes #5568

This class can be used to composite multiple class loaders to search
in sequence for a class or resource.

Signed-off-by: BJ Hargrave <[email protected]>
We use CompositeClassLoader to composite the tester bundle's class
loader with the original TCCL when loading and executing tests. This
will provide visibility classes and resource from the original TCCL.

Fixes bndtools#5568

Signed-off-by: BJ Hargrave <[email protected]>
@bjhargrave bjhargrave merged commit 535466e into bndtools:master Aug 7, 2023
@bjhargrave bjhargrave deleted the issues/5568 branch August 7, 2023 19:57
@kriegfrj
Copy link
Contributor

kriegfrj commented Aug 8, 2023

Before we go down this path I want to revisit 859636b and see if it (or this) was really necessary, because I don't think that they should be. I've backed out that change in my local commit and I can see that it causes the tests to fail, but I think that these failures might be due to the isolation between the Eclipse launcher and the Launchpad system-under-test.

kriegfrj added a commit that referenced this pull request Aug 9, 2023
This is an alternative fix for #5568 which supersedes
commit bef0458 in PR #5743. We minimise the scope of the
TCCL change so that it does not interfere with the (otherwise
working) default classloader mechanisms during test execution.

Fixes #5568.

Signed-off-by: Fr Jeremy Krieg <[email protected]>
@kriegfrj
Copy link
Contributor

kriegfrj commented Aug 9, 2023

Referr #5744 for the follow-up, alternate solution that superseded this one.

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.

bnd-testing-maven-plugin:7.0.0-SNAPSHOT:testing goal fails for certain tests
2 participants