msgpack-haskell icon indicating copy to clipboard operation
msgpack-haskell copied to clipboard

Java tuple fix

Open delta2323 opened this issue 12 years ago • 0 comments

In former implementation, tuple in idl is realized as generic class Tuple<T, U>. But it cannot be deserialized in msgpack type. This pull request is patch for this problem.

Instead of creating generic type, concrete class is created for each tuple type appeared in .idl file. For example, tuple<string, double> is realized as TupleStringDouble class and tuple<tuple<string, double>, double> is TupleTupleStringDoubleDouble. (This class name is somewhat lengthy and difficult to read, so if more clever naming is available, I'd like to choose it.)

delta2323 avatar Jun 20 '12 10:06 delta2323