Skip to content

Remove stale arcade#7585 comments in System.Net.Http#130477

Open
MihaZupan with Copilot wants to merge 1 commit into
mainfrom
copilot/remove-outdated-comments
Open

Remove stale arcade#7585 comments in System.Net.Http#130477
MihaZupan with Copilot wants to merge 1 commit into
mainfrom
copilot/remove-outdated-comments

Conversation

Copilot AI commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Three files carried a comment claiming [UnsupportedOSPlatform(...)] attributes were commented out due to dotnet/arcade#7585, warning that "API compat will fail until this is fixed." The attributes are in fact present and applied, so the comment is stale and misleading.

  • Removed the obsolete comment block above the Send/SendAsync overrides in:
    • src/libraries/System.Net.Http/ref/System.Net.Http.cs
    • src/libraries/System.Net.Http/src/System/Net/Http/HttpClientHandler.cs
    • src/libraries/System.Net.Http/src/System/Net/Http/HttpClientHandler.AnyMobile.cs

Comment-only change; the platform attributes and surrounding code are untouched.

Co-authored-by: MihaZupan <25307628+MihaZupan@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 10, 2026 11:22
Copilot AI removed the request for review from Copilot July 10, 2026 11:22
@MihaZupan MihaZupan added this to the 11.0.0 milestone Jul 10, 2026
@MihaZupan MihaZupan marked this pull request as ready for review July 10, 2026 11:23
Copilot AI review requested due to automatic review settings July 10, 2026 11:23
Copilot AI had a problem deploying to copilot-pat-pool July 10, 2026 11:23 Failure
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @karelz, @dotnet/ncl
See info in area-owners.md if you want to be subscribed.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR removes a stale/misleading comment block that claimed [UnsupportedOSPlatform(...)] attributes were commented out and would break API compat, even though the attributes are present and applied. This is a low-risk, comment-only cleanup in System.Net.Http that helps keep the codebase accurate and reduces confusion for future maintainers.

Changes:

  • Removed the obsolete “arcade#7585 / API compat will fail” comment above Send/SendAsync overrides in the main HttpClientHandler implementation.
  • Removed the same obsolete comment in the AnyMobile variant.
  • Removed the same obsolete comment in the System.Net.Http ref assembly source (no API surface change).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/libraries/System.Net.Http/src/System/Net/Http/HttpClientHandler.cs Deletes stale comment above Send override; attributes/code remain unchanged.
src/libraries/System.Net.Http/src/System/Net/Http/HttpClientHandler.AnyMobile.cs Deletes same stale comment in mobile-specific handler path.
src/libraries/System.Net.Http/ref/System.Net.Http.cs Deletes same stale comment in ref source near the Send override.

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.

3 participants