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

Subscriber.request should throw exception if negative request made #2548

Merged
merged 1 commit into from
Jan 28, 2015

Conversation

davidmoten
Copy link
Collaborator

As per discussion in #1956 and #2545, making a call to Subscriber.request(n) with negative n should throw an IllegalArgumentException.

Includes unit test.

@akarnokd
Copy link
Member

I think the IAE should be mentioned in request's javadoc.

@davidmoten
Copy link
Collaborator Author

javadoc added

@akarnokd
Copy link
Member

Great!

akarnokd added a commit that referenced this pull request Jan 28, 2015
Subscriber.request should throw exception if negative request made
@akarnokd akarnokd merged commit a82800c into ReactiveX:1.x Jan 28, 2015
@benjchristensen benjchristensen mentioned this pull request Feb 3, 2015
@davidmoten davidmoten deleted the request-check branch April 10, 2015 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants