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 classloading issue when used in an OSGi environment #538

Merged
merged 1 commit into from
May 23, 2024

Conversation

J-N-K
Copy link
Contributor

@J-N-K J-N-K commented May 21, 2024

In #438 several utils changed from instance classes to static utility classes. As a result also the way resources are read from the classpath changed. Using the current thread's context classloader is not compatible with OSGi environments because the bundle may not be accessible from the calling classloader of the calling class. In these environment calling getClassloader on a class in the same bundle is preferred. This should also work in other environment.

Signed-off-by: Jan N. Klug <github@klug.nrw>
@derTobsch derTobsch added this to the 0.28.1 milestone May 21, 2024
@derTobsch derTobsch added the type: bug Something isn't working label May 21, 2024
@derTobsch derTobsch merged commit a139e88 into focus-shift:main May 23, 2024
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants