FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

resetDecoder should be called once per decoding by miniway · Pull Request #387 · msgpack/msgpack-java · GitHub

resetDecoder should be called once per decoding - #387

Merged
xerial merged 1 commit into
msgpack:developfrom
miniway:fix_truncate
Sep 23, 2016
Merged

resetDecoder should be called once per decoding#387
xerial merged 1 commit into
msgpack:developfrom
miniway:fix_truncate

Conversation

miniway commented Sep 23, 2016

Copy link
Copy Markdown
Contributor

When multiple MessageBuffer involved at unpackString first bytes can be removed because resetDecoder is called multiple times.

this.sequence = checkNotNull(sequence, "input sequence is null");
try {
nextInput();
} catch (IOException ignore) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

}

"read numeric data at buffer boundary" taggedAs("boundary2") in {
"read data at buffer boundary" taggedAs("boundary2") in {

xerial Sep 23, 2016
edited
Loading

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This test case is intended for checking a bug on unpackInteger that found in the past. We should have another test case for string.

xerial merged commit 9467f61 into msgpack:develop Sep 23, 2016
xerial added a commit that referenced this pull request Sep 23, 2016

xerial commented Sep 23, 2016

Copy link
Copy Markdown
Member

Merged in #388

private Enumeration<? extends MessageBufferInput> sequence;
private MessageBufferInput input;

public SequenceMessageBufferInput(Enumeration<? extends MessageBufferInput> sequence)

frsyuki Sep 23, 2016
edited
Loading

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

can we use Iterator, Stream, Iterable, or Collection instead of Enumeration? or how about moving this to test package only for now? Because Enumeration is considered as a deprecated interface used only by old classes such as Vector or Hashtable.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Agreed. Iterator<MessageBufferInput> would work. And this should be in test package.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL