Update OSGi classloader #741
I've added an OSGi integration test. Currently it needs to be run after ant jar-jruby-complete and you need to use either the felix2 or felix4 profile. I'm open to suggestions for how to better integrate the test case.
After adding the test case, I added a different method to find the classloader for a bundle. I added this as a set of new classes, mostly because I wanted to ensure any users of the existing classes wouldn't be affected.
I verified that the new method does fallback correctly in the felix2 profile (which doesn't export the new org.osgi.framework.wiring package.
The text was updated successfully, but these errors were encountered:
It seems that www.amazon.com changed the CA cert it uses for its ssl connection, and that caused us to start failing tests. After some investigation, I figured out which cert we needed and what the filename needed to be in the ca_path test. I have added a README.txt to the ca_path and comments to all the related certs. I also removed a cert file that appeared to be duplicate and added a more explicitly incorrect cert for the test that is supposed to fail verification.
This should fix jruby#653. We may catch too much here, but it seems the intent of the rescue block was to capture most exceptions. It also would have caught the ant ExitStatusException as a NativeException before, but that stopped working after we stopped wrapping Java exceptions. The fix should catch it properly now.
…ease? to cast NullPointerException
This reverts commit 05de78e.