segmentio/analytics-java — pull request #25 by dariush-griffin (2014-09-17 00:16:04+00:00)
Title: Added BasePayloadTypeAdapter to fix Serialization Issues

Subclasses of BasePayload were not properly serialized as Gson lacked an adapter to convert from the parent to its base class. This left much of the API unusable as the userId, nor anonymousId, was included in the rest call despite being set on the various payload objects.