BundleDelegatingClassLoader randomly loads classes from wrong classloader when running Pax Exam tests in native container #13977
Labels
1 - triaged
Tickets that are safe to pick up for contributing in terms of likeliness of being accepted
help wanted
Issues that the core team will likely not have time to work on
t:osgi
Milestone
imported from https://www.assembla.com/spaces/akka/tickets/3977
The problem occurs when we are running tests using Pax Exam and in the Native Container.
The findTransitiveBundles method returns a list of bundles to use when loading classes specified in the configuration. This list is unordered and when bundle 0 is first in the list the classes will be loaded from the JVM classloader which then causes a ClassCastException. This causes the integration tests to be unstable. One simple solution is to sort this list in a descending order.
The text was updated successfully, but these errors were encountered: