Skip to content
This repository

BufferOverflowException on AnnotatedCompositeSerializer #253

Closed
FuadEfendi opened this Issue · 2 comments

2 participants

FuadEfendi elandau
FuadEfendi

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
FuadEfendi

Is that fixed? Test was failing last week.
Thanks

elandau
Owner

Yep. Should be fixed in 1.56.34 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.