You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 20, 2019. It is now read-only.
I'm curious as why objA2 below is different from objA1.
objA2 is Pair(Pair(1,2),Pair(1,2)). The second 1 gets replaced by Pair(1,2).
The fact that the second 1 is a 1 matters. Changing it to something
else gives me the correct result.
Also, calling objB2.toString gives me a StackOverFlowError error.
What's going on?
importscala.pickling._importbinary._objectTestSerializer {
caseclassPair(valx:Any, valy:Any)
defmain(args : Array[String]) = {
// TEST 1valobjA1:Any=Pair(Pair(1,2),1)
valsA:Array[Byte] = objA1.pickle.value
println("serialized "+ objA1)
valobjA2:Any= sA.unpickle[Any]
println("deserialized "+ objA2) // does not fail but gives the wrong answer// TEST 2valobjB1:Any=Pair(1,Pair(1,2))
valsB:Array[Byte] = objB1.pickle.value
println("serialized "+ objB1)
valobjB2:Any= sB.unpickle[Any]
println("deserialized "+ objB2) // fails
}
}
The text was updated successfully, but these errors were encountered:
I'm exactly in the same problem..please let me know if you find the solution, seems than heather is not so much active solving/responding issues :S ...I need picking to ByteString (the akka Array[byte] alternative)....
I'm curious as why objA2 below is different from objA1.
objA2 is Pair(Pair(1,2),Pair(1,2)). The second 1 gets replaced by Pair(1,2).
The fact that the second 1 is a 1 matters. Changing it to something
else gives me the correct result.
Also, calling objB2.toString gives me a StackOverFlowError error.
What's going on?
The text was updated successfully, but these errors were encountered: