-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[BUG] Service Bus is not annotated for nullability #42192
Comments
Hi @vanillajonathan. Thank you for reaching out and we regret that you're experiencing difficulties. The Service Bus client library is intentionally not annotated for nullability. Nullable reference annotations are something that we continue to evaluate for Azure SDK packages as the language and tooling evolves, but not something that we'll be enabling in the short term. There are several reasons for this, the most important being:
Additional rationale and discussion can be found in #8880. |
Hi @vanillajonathan. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation. |
/unresolve That issue is several years old. Now is new times so it ought to be reconsidered. This caused a bug for me and having the library annotated for nullability would improve the developer experience and reduce downstream bugs. The Azure SDK would continue to be consistent across different libraries even with nullability since the API and behavior would remain the same. Nullability is just a compiler hint. |
Adding nullability to an existing API that has been released is considered a breaking change and is not something that we would be adding in the current form. To avoid inconsistencies, we do not currently have plans to annotate new members in existing libraries. We are continuing to monitor changes in the .NET ecosystem and tooling and should a path become available to introduce annotations in a non-breaking way, we may reconsider at that point. At present, this is not something that we will be adding. |
Hi @vanillajonathan. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text "/unresolve" to remove the "issue-addressed" label and continue the conversation. |
Hi @vanillajonathan, since you haven’t asked that we |
Library name and version
Azure.Messaging.ServiceBus 7.17.3
Describe the bug
The
ContentType
property of theServiceBusReceivedMessage
class is not declared as nullable but it can benull
.Expected behavior
The
ContentType
property should be declared as nullable.Actual behavior
The
ContentType
property is not declared as nullable.Reproduction Steps
Environment
.NET 8.0.200
The text was updated successfully, but these errors were encountered: