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

BufferOverflowException on AnnotatedCompositeSerializer #253

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

BufferOverflowException on AnnotatedCompositeSerializer #253

FuadEfendi opened this issue Mar 27, 2013 · 2 comments

Comments

@FuadEfendi
Copy link

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 as completed Mar 27, 2013
@FuadEfendi
Copy link
Author

Is that fixed? Test was failing last week.
Thanks

@elandau
Copy link
Contributor

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants