When Class.forName is called for a class in a different bundle it will
fail as the default karaf class loader won't load classes from other
bundles.

I have fixed this by using the classloader of the original
(non-autovalue) type and assuming it will be in the same bundle as the
autovalue type (I think this is a reasonable assumtion).

So far the only place where I've actually seen this being an issue is
when using the jclouds-labs-google provider within karaf. It fails
when serialising the Firewall.Rule class within a FirewallOptions
object.
You can view, comment on, or merge this pull request online at:

  https://github.com/jclouds/jclouds/pull/1005

-- Commit Summary --

  * Fix autovalue class loading in karaf

-- File Changes --

    M 
core/src/main/java/org/jclouds/json/internal/DeserializationConstructorAndReflectiveTypeAdapterFactory.java
 (2)

-- Patch Links --

https://github.com/jclouds/jclouds/pull/1005.patch
https://github.com/jclouds/jclouds/pull/1005.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1005

Reply via email to