Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Sep 18, 2025

Backport of #119838 to release/10.0

/cc @eiriktsarpalis @copilot

Customer Impact

  • Customer reported
  • Found internally

.NET 9 regressed the behavior of the DefaultIfEmpty LINQ method resulting in incorrect results when chained with ElementAtOrDefault using an out of bounds index.

Regression

  • Yes
  • No

#98969

Testing

Added unit testing verifying the impacted behavior.

Risk

Low. Applies a straightforward fix to a simple bug.

Copilot AI and others added 3 commits September 18, 2025 13:22
…ment not found

Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com>
…tElementAt

Co-authored-by: eiriktsarpalis <2813363+eiriktsarpalis@users.noreply.github.com>
@eiriktsarpalis eiriktsarpalis added Servicing-consider Issue for next servicing release review area-System.Linq labels Sep 18, 2025
@eiriktsarpalis eiriktsarpalis added this to the 10.0.0 milestone Sep 18, 2025
@eiriktsarpalis eiriktsarpalis self-assigned this Sep 18, 2025
@dotnet-policy-service
Copy link
Contributor

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

@eiriktsarpalis eiriktsarpalis added api-approved API was approved in API review, it can be implemented and removed Servicing-consider Issue for next servicing release review labels Sep 18, 2025
@eiriktsarpalis
Copy link
Member

Approved over email.

@eiriktsarpalis eiriktsarpalis added Servicing-approved Approved for servicing release and removed api-approved API was approved in API review, it can be implemented labels Sep 18, 2025
@eiriktsarpalis eiriktsarpalis requested review from hoyosjs and removed request for hoyosjs September 18, 2025 16:14
@jeffhandley
Copy link
Member

/ba-g Known test errors only

@jeffhandley jeffhandley merged commit 7365770 into release/10.0 Sep 23, 2025
94 of 103 checks passed
@jeffhandley jeffhandley deleted the backport/pr-119838-to-release/10.0 branch September 23, 2025 16:19
@github-actions github-actions bot locked and limited conversation to collaborators Oct 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Linq Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants