Hello, I am using Xstream 1.4.2 to convert some xml input, it works perfectly in standard environment however when executed in OSGi context, annotations are simply ignored :
XStream stream = new XStream();
stream.autodetectAnnotations(true);
stream.processAnnotations(CustomerDTO.class); // just in case...
CustomerDTO is imported from another bundle, so I tried:
stream.processAnnotations(getClass().getClassLoader().loadClass(CustomerDTO.class.getName()));
But it didn't work :(
any suggestions ?
