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

MulticastOption.Group no longer accepts null. #32518

Merged
merged 2 commits into from
Feb 22, 2020
Merged

Conversation

eerhardt
Copy link
Member

MulticastOption.Group is not supposed to accept null. If someone sets it to null, we will NRE inside of the Sockets implementation.

I also fixed two small double-cast problems while I was in here.

Fix #32490

Note that this is a breaking change. I'm not sure all the ways I'm supposed to document this. If anyone has thoughts, please let me know.

@eerhardt eerhardt added the breaking-change Issue or PR that represents a breaking API or functional change over a prerelease. label Feb 19, 2020
@eerhardt eerhardt requested review from stephentoub, davidsh and a team February 19, 2020 00:23
@carlossanlop
Copy link
Member

I'm not sure all the ways I'm supposed to document this. If anyone has thoughts, please let me know.

@ericstj knows where breaking changes should be mentioned.

For dotnet-api-docs, I can help.

@@ -67,6 +67,11 @@ public IPAddress Group
}
set
Copy link
Member

Choose a reason for hiding this comment

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

Since this API did not have triple slash comments, and is already documented in MS Docs, this new exception must be added here:

https://github.com/dotnet/dotnet-api-docs/blob/f37171b1ee7912fad473703ce48a91f96df382b8/xml/System.Net.Sockets/MulticastOption.xml#L273

@davidsh davidsh added this to the 5.0 milestone Feb 19, 2020
@eerhardt eerhardt closed this Feb 19, 2020
@eerhardt eerhardt reopened this Feb 19, 2020
MulticastOption.Group is not supposed to accept null. If someone sets it to null, we will NRE inside of the Sockets implementation.

I also fixed two small double-cast problems while I was in here.

Fix dotnet#32490
@danmoseley
Copy link
Member

@eerhardt this is labeled breaking change. Can you please open an issue if necessary using https://github.com/dotnet/docs/issues/new?template=dotnet-breaking-change.md ?

@eerhardt
Copy link
Member Author

Can you please open an issue if necessary using https://github.com/dotnet/docs/issues/new?template=dotnet-breaking-change.md ?

Done. dotnet/docs#19723

@ghost ghost locked as resolved and limited conversation to collaborators Dec 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Net.Sockets breaking-change Issue or PR that represents a breaking API or functional change over a prerelease.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MulticastOption Group setter should not allow null
5 participants