History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: XSTR-346
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Assignee: Unassigned
Reporter: Holger Hoffstätte
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
XStream

Deprecated class/interfaces break existing MapConverter with ClassCastException

Created: 23/Sep/06 11:07 AM   Updated: 09/Nov/06 05:05 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 1.2.1


 Description  « Hide
It seems the API changes in 1.2 lead to a binary incompatibility with existing converters. In Mule (http://mule.codehaus.org/) we have a custom converter for ConcurrentHashMaps and the required constructor that takes a Mapper argument breaks with a ClassCastException when existing code uses getClassMapper() to retrieves a mapper for initialization. I wanted to avoid source changes (from getClassMapper() to getMapper()) to allow running with 1.1.3 for a limited time.

It seems to me this should this be possible, otherwise the whole point of providing @deprecated method stubs would be moot. You can look at the code:
http://fisheye.codehaus.org/browse/mule/trunk/mule/core/src/main/java/org/mule/util/XStreamFactory.java?r=3191
around line#50.

It would be nice if this could be addressed in 1.2.1, otherwise we'll have to stick with 1.1.3 for a while :/


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Joerg Schaible - 27/Sep/06 12:22 PM
I've added a solution with a proxy. Currently only available in SVN. A maintenance release will have to wait until HAUS-1309 is solved.

Joerg Schaible - 09/Nov/06 05:05 PM
Closed as fixed for 1.2.1