scambon/CliWrapper4J

Fix classloading in OSGi

Closed this issue · 1 comments

When running in OSGi environments, the current classloader used in ReflectiveExecutableFactory.<init>(Class) cannot access the IExecutable-extending interface.
This is due to the classloader reflecting the bundle dependency graph.

Use the classloder of the IExecutable-extending interface class instead.

Fixed by d02ef2a