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

reading with WireInternal.throwable(false) loses last stacktrace element #96

Closed
gregallen opened this issue Jul 12, 2018 · 3 comments
Closed

Comments

@gregallen
Copy link

    @Test
    public void testThrowable() {
        final Bytes bytes = Bytes.elasticByteBuffer();
        final Wire wire = new TextWire(bytes);

        final Exception exc = new Exception();

        wire.write(() -> "exc").throwable(exc);

        final Throwable actual = wire.read("exc").throwable(false);
        assertArrayEquals(exc.getStackTrace(), actual.getStackTrace());

        bytes.release();
    }

Annoying because we do some automated testing of Marshallables using OpenPojo, and this causes the round-trip equality check to fail

@gregallen
Copy link
Author

@hft-team-city
Copy link
Collaborator

@hft-team-city
Copy link
Collaborator

Released in Chronicle-Wire-2.20.101, BOM-2.20.134

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