Project: springxd
Issue XD-2825: SCS - Verify/Fix AbstractKryoMultitypeCodec implementation
This apparently is not tested or used internally, but I expect it to fail having tried a similar approach to derive the class of a generic type in a different situation. This method does not always work due to type erasure http://stackoverflow.com/questions/3403909/get-generic-type-of-class-at-runtime. We need to verify if this is working, if not fix it. The API may require it, so possibly UnsupportedOperationException... {code} /** * Infers the type from this class's generic type argument * @param kryo * @param input * @return */ protected T doDeserialize(Kryo kryo, Input input) {	Class type = (Class) (	(ParameterizedType) this.getClass().getGenericSuperclass()).getActualTypeArguments()[0];	return doDeserialize(kryo, input, type); } {code}
Story points: 1