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

Use a fallback classloader suitable for java Modules or OSGi environments. #1185

Open
wglas85 opened this issue Apr 11, 2025 · 0 comments
Open

Comments

@wglas85
Copy link

wglas85 commented Apr 11, 2025

When loading TerminalProviders in context using java Modules or OSGi, the fallback to the system classloader in

cl = ClassLoader.getSystemClassLoader();

is inappropriate ands leads to load errors inside TerminalProvider.

The more appropriate fallback classloader is

   TerminalProvider.class.getClassLoader()

which points to the system classloader in simple setups or to the module's or OSGi bundle classloader in more complex deployments.

@wglas85 wglas85 changed the title Use a fallback classloader suitable for java Modules or SOGi environments. Use a fallback classloader suitable for java Modules or OSGi environments. Apr 11, 2025
wglas85 added a commit to iteggmbh/jline3 that referenced this issue Apr 11, 2025
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

No branches or pull requests

1 participant