BufferOverflowException on AnnotatedCompositeSerializer #253

Closed
FuadEfendi opened this Issue Mar 27, 2013 · 2 comments

Comments

Projects
None yet
2 participants

Parent issue: #228

This JUnit Test fails; note that default Buffer size is 512:

{

public class AnnotatedCompositeSerializerTest {

@test
public void testOverflow() {

AnnotatedCompositeSerializer<Foo> serializer = new AnnotatedCompositeSerializer<Foo>(
        Foo.class);

Foo foo = new Foo();
foo.bar = Strings.repeat("b", 500);
foo.test = Strings.repeat("b", 12);

ByteBuffer byteBuffer = serializer.toByteBuffer(foo);

}

public static class Foo {

@Component(ordinal = 0)
private Date updateTimestamp;

@Component(ordinal = 1)
private String bar;

@Component(ordinal = 2)
private String test;

}

}

@elandau elandau closed this Mar 27, 2013

Is that fixed? Test was failing last week.
Thanks

Member

elandau commented Apr 1, 2013

Yep. Should be fixed in 1.56.34 release.

omar-eyeviewdigital pushed a commit to omar-eyeviewdigital/astyanax that referenced this issue Oct 31, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment