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

Make ByteStrings serializable with java serialization. #102

Merged
merged 2 commits into from Nov 28, 2014
Merged

Make ByteStrings serializable with java serialization. #102

merged 2 commits into from Nov 28, 2014

Conversation

fizbin
Copy link
Contributor

@fizbin fizbin commented Nov 25, 2014

Make ByteStrings serializable with java serialization.

Fixes https://code.google.com/p/protobuf/issues/detail?id=485

@@ -393,4 +396,17 @@ public void testConcat_empty() {
assertSame("empty concatenated with " + classUnderTest + " must give " + classUnderTest,
ByteString.EMPTY.concat(stringUnderTest), stringUnderTest);
}

public void testJavaSerialization() throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add this test for BoundedByteString and RopeByteString as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right. Will do.

@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm.

@fizbin
Copy link
Contributor Author

fizbin commented Nov 27, 2014

Confirmed. Both fizbin@gmail.com and daniel.martin@crowdstrike.com are the same person (me).

@fizbin
Copy link
Contributor Author

fizbin commented Nov 27, 2014

If it would be more convenient for me to close this request and reopen it with commits all authored by the same email address, let me know.

@xfxyjwf
Copy link
Contributor

xfxyjwf commented Nov 28, 2014

I think it's fine. Thanks for the patch.

xfxyjwf added a commit that referenced this pull request Nov 28, 2014
Make ByteStrings serializable with java serialization.
@xfxyjwf xfxyjwf merged commit 7f2a9fb into protocolbuffers:master Nov 28, 2014
@xfxyjwf xfxyjwf added cla: yes and removed cla: no labels Nov 28, 2014
TeBoring pushed a commit to TeBoring/protobuf that referenced this pull request Jan 19, 2019
Added google/protobuf/descriptor.upb.* to core.
bithium pushed a commit to bithium/protobuf that referenced this pull request Sep 4, 2023
Added google/protobuf/descriptor.upb.* to core.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants