Skip to content

Monthly Archives: November 2013

On Testing

I really should do a write-up about the CI and code quality infrastructure that I’ve set up, as in recent months it’s really started to pay off for the considerable effort it’s cost. But that’s not what’s on my mind today. Rather I am struck by how easy it is to really stuff up unit […]

Deserialising Lists in Jersey Part II

or “Type Erasure is not your friend” The solution I outlined in my previous has one big drawback (well, two, actually): it does not work. The trouble is that the approach I suggested of having a common generic function to invoke the request with a GenericType resulted in the nested type being erased at run […]

Deserialising Lists with Jersey

I very much like the way in which Jackson and Jersey interact to make building a RESTful interface with objects transported as JSON really, really simple. As an example, if we have on the server side a class like this: then consuming the service is joyfully simple (note that this is a slightly fudged about […]