Hi,

Yan Cheng CHEOK wrote:

> All the while, I am using xstream-1.3.1.
> 
> Recently, when my users use Java 7, they encounter the following problem
> :-
> 
> "Cannot construct org.pitest.mutationtest.MutationCoverageReport as it
> does not have a no-args"
> 
> I knew I can solve the problem, by using the following way, and still
> stick to 1.3.1
> 
> new XStream(new Sun14ReflectionProvider());
> 
> I was wondering, is this a correct way to solve the above problem?

For 1.3.1, yes. 1.3.1 does not identify Java 7 at all.

> Or,
> should I just switch to 1.4.2.

Recommended.

> Is there any side effect?

The release is as compatible as possible, but it's not 100%. You may want to 
check the changes (http://xstream.codehaus.org/changes.html). A lot of 
applications will run without change. Take care for the XML output that may 
also have slightly changed format depending on new/adjusted converters in 
the delivery. However, in such cases the old format is typically compatible 
at unmarshalling time.

Cheers,
Jörg


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to