Skip to content

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