Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceFieldSerializerTest failure: non static inner class #16

Closed
ghost opened this issue Nov 11, 2013 · 1 comment
Closed

ReferenceFieldSerializerTest failure: non static inner class #16

ghost opened this issue Nov 11, 2013 · 1 comment

Comments

@ghost
Copy link

ghost commented Nov 11, 2013

From pfirm...@bigpond.net.au on April 12, 2010 21:52:41

Hi Nate,

I've checked out the latest revision of kryo from svn and built using
Netbeans 6.0.1

$ uname -a
SunOS bluto 5.10 Generic_137111-06 sun4u sparc SUNW,Ultra-80

$ java -version
java version "1.6.0_07"
Java(TM) Platform, Standard Edition for Business (build 1.6.0_07-b06)
Java HotSpot(TM) Server VM (build 10.0-b23, mixed mode)

These are the failure results, all other tests are passing:

Testsuite: com.esotericsoftware.kryo.serialize.ReferenceFieldSerializerTest
Tests run: 5, Failures: 2, Errors: 0, Time elapsed: 1.028 sec

Testcase:
testNonStaticInnerClassPublicConstructor(com.esotericsoftware.kryo.serialize.ReferenceFieldSerializerTest):
FAILED
Incorrect length. expected:<18> but was:<15>
junit.framework.AssertionFailedError: Incorrect length. expected:<18> but
was:<15>
at
com.esotericsoftware.kryo.KryoTestCase.roundTripKryo(KryoTestCase.java:86)
at
com.esotericsoftware.kryo.KryoTestCase.roundTrip(KryoTestCase.java:74)
at
com.esotericsoftware.kryo.serialize.ReferenceFieldSerializerTest.testNonStaticInnerClassPublicConstructor(ReferenceFieldSerializerTest.java:76)

Testcase:
testNonStaticInnerClassPrivateConstructor(com.esotericsoftware.kryo.serialize.ReferenceFieldSerializerTest):
FAILED
Incorrect length. expected:<18> but was:<15>
junit.framework.AssertionFailedError: Incorrect length. expected:<18> but
was:<15>
at
com.esotericsoftware.kryo.KryoTestCase.roundTripKryo(KryoTestCase.java:86)
at
com.esotericsoftware.kryo.KryoTestCase.roundTrip(KryoTestCase.java:74)
at
com.esotericsoftware.kryo.serialize.ReferenceFieldSerializerTest.testNonStaticInnerClassPrivateConstructor(ReferenceFieldSerializerTest.java:91)

Test com.esotericsoftware.kryo.serialize.ReferenceFieldSerializerTest FAILED

Original issue: http://code.google.com/p/kryo/issues/detail?id=16

@ghost
Copy link
Author

ghost commented Nov 11, 2013

From nathan.s...@gmail.com on April 12, 2010 14:31:04

Oops, I meant to remove those tests. Fixed in r102. Thanks!

You can see more about why non-static inner class support was removed from
ReferenceFieldSerializer here:
http://groups.google.com/group/kryo-users/browse_thread/thread/8e0014d7c6cbc8dd#msg_130e86d25c6f9319

Status: Fixed

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

0 participants