Elffuss BraidHub

kikocis/java-driver public

Update OSGi example to use netty 4.0.33.Final.
Changeset7aa30ea93ee9d01e64c8c6572b9ac43b2ac0b87b774f2118ecc53af0ccfe1b22
AuthorAndrew Tolbert <andrew.tolbert@datastax.com> · 2015-11-16 16:38 -06:00
CommitterAndrew Tolbert <andrew.tolbert@datastax.com> · 2015-11-16 16:38 -06:00
Parents3c92ee75e722

Browse the files at this changeset

1 file changed

modified driver-examples/osgi/src/test/java/com/datastax/driver/osgi/BundleOptions.java +5 −1
@@ -21,6 +21,7 @@
2121 import org.ops4j.pax.exam.options.UrlProvisionOption;
2222 import org.ops4j.pax.exam.util.PathUtils;
2323
24+import static org.ops4j.pax.exam.CoreOptions.bootDelegationPackage;
2425 import static org.ops4j.pax.exam.CoreOptions.bundle;
2526 import static org.ops4j.pax.exam.CoreOptions.mavenBundle;
2627 import static org.ops4j.pax.exam.CoreOptions.options;
@@ -47,7 +48,7 @@
4748 }
4849
4950 public static CompositeOption nettyBundles() {
50- final String nettyVersion = "4.0.27.Final";
51+ final String nettyVersion = "4.0.33.Final";
5152 return new CompositeOption() {
5253
5354 @Override public Option[] getOptions() {
@@ -71,6 +72,9 @@
7172
7273 @Override public Option[] getOptions() {
7374 return options(
75+ // Delegate javax.security.cert to the parent classloader. javax.security.cert.X509Certificate is used in
76+ // io.netty.util.internal.EmptyArrays, but not directly by the driver.
77+ bootDelegationPackage("javax.security.cert"),
7478 systemProperty("cassandra.contactpoints").value(CCMBridge.IP_PREFIX + 1),
7579 systemProperty("logback.configurationFile").value("file:" + PathUtils.getBaseDir() + "/src/test/resources/logback.xml"),
7680 mavenBundle("org.slf4j", "slf4j-api", "1.7.5"),