Closed GoogleCodeExporter closed 9 years ago
I forgot to remark the credits: the CalendarSerializer was initially inspired
in Martin Grotzke's one, although with a different approach as you cas see.
Hope there is no problem with the credits for my proposal of adding them as
default serializers...
Original comment by serverpe...@gmail.com
on 18 Jun 2012 at 1:04
This issue was closed by revision r298.
Original comment by nathan.s...@gmail.com
on 18 Jun 2012 at 1:05
Always fantastic to have contributions, thanks! :) I added a test as well.
Original comment by nathan.s...@gmail.com
on 18 Jun 2012 at 1:06
I've downloaded the current version from Subversion (revision 300) and the
TestCase fails to me with this message:
Testcase: testCalendar(com.esotericsoftware.kryo.DefaultSerializersTest): FAILED
Incorrect number of bytes read. expected:<64> but was:<57>
junit.framework.AssertionFailedError: Incorrect number of bytes read.
expected:<64> but was:<57>
at com.esotericsoftware.kryo.KryoTestCase.roundTrip(KryoTestCase.java:47)
at com.esotericsoftware.kryo.DefaultSerializersTest.testCalendar(DefaultSerializersTest.java:202)
Did I made something wrong?
By the way, this other Test is also failing:
Testcase:
testInstantiatorStrategy(com.esotericsoftware.kryo.FieldSerializerTest): Caused
an ERROR
com.esotericsoftware.kryo.FieldSerializerTest$HasArgumentConstructor: method
<init>()V not found
java.lang.NoSuchMethodError:
com.esotericsoftware.kryo.FieldSerializerTest$HasArgumentConstructor: method
<init>()V not found
at com.esotericsoftware.kryo.FieldSerializerTest$HasArgumentConstructorConstructorAccess.newInstance(Unknown Source)
at com.esotericsoftware.kryo.Kryo$1.newInstance(Kryo.java:967)
at com.esotericsoftware.kryo.Kryo.newInstance(Kryo.java:1016)
at com.esotericsoftware.kryo.serializers.FieldSerializer.create(FieldSerializer.java:216)
at com.esotericsoftware.kryo.serializers.FieldSerializer.read(FieldSerializer.java:220)
at com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:711)
at com.esotericsoftware.kryo.KryoTestCase.roundTrip(KryoTestCase.java:45)
at com.esotericsoftware.kryo.FieldSerializerTest.testInstantiatorStrategy(FieldSerializerTest.java:308)
Regards
Original comment by serverpe...@gmail.com
on 18 Jun 2012 at 8:30
Yeah the calendar test was using my timezone so it worked for me. Fixed.
FieldSerializer, not sure at the moment as I have it all dismantled thanks to
your other issue. :p
Original comment by nathan.s...@gmail.com
on 18 Jun 2012 at 8:34
[deleted comment]
:-D
Original comment by serverpe...@gmail.com
on 18 Jun 2012 at 8:53
Original issue reported on code.google.com by
serverpe...@gmail.com
on 18 Jun 2012 at 12:29Attachments: