This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

RestTemplate and generics

Feb 1st, 2013, 07:22 AM

This issue was resolved in Spring 3.2 https://jira.springsource.org/browse/SPR-7023 but it wasn't ported to spring for android. To clarify, it isn't possibile to do something like this at the moment using the version of RestTemplate in spring for android

Comment

@alexmaz hi, I'm working on merging the generics support from Spring 3.2 into Spring for Android. I see you found the open JIRA for the issue. This fix along with other many other updates from 3.2 will be available in the upcoming 1.1.0.M1.

Re. java. Yes, I'm working on a mac and have experienced the same issue with Java 7. Because of this, I'm continuing to use the Apple provided Java 6 for building the library locally.

Comment

Thanks for your answer and for your work! I've ported some of the changes from 3.2 myself just to have something working quickly for my use case at the moment, which involves only MappingJackson2HttpMessageConverter. Working fine at the moment.

Comment

Ok, great! good to know. Unfortunately, because Spring for Android is a fork of sorts from Spring Framework, it can be pretty tedious going through all the updates and merging in the applicable changes. I could short cut this process, but I like to keep everything in sync where possible. And that includes all the tests, which can be the most challenging.