For the Package-private class issue / MetricsPaxExamTest, the ClientProxyFactory instance uses a class loader instance of type org.ops4j.pax.swissbox.core.BundleClassLoader which delegates to a DelegatingBundle containing the metrics-cdi bundle that contains the parent class MetricProducer. The only thing that I see when the error is thrown when the proxy class is defined into the BundleClassLoader by org.jboss.weld.util.bytecode.ClassFileUtils#toClass is that the corresponding ProtectionDomain (the one associated to the metrics-cdi bundle) class loader is null.
|