Skip to content

[release/6.0] Fix Queryable-to-Enumerable overload mapping logic - #65857

Merged
ericstj merged 4 commits into
release/6.0from
backport/pr-65569-to-release/6.0
Mar 10, 2022
Merged

[release/6.0] Fix Queryable-to-Enumerable overload mapping logic#65857
ericstj merged 4 commits into
release/6.0from
backport/pr-65569-to-release/6.0

Conversation

@github-actions

@github-actionsgithub-actionsBot commented Feb 24, 2022

Copy link
Copy Markdown
Contributor

Backport of #65569 to release/6.0

/cc @eiriktsarpalis

Customer Impact

Addresses a customer reported regression from .NET 5 (#65419). The inclusion of new FirstOrDefault/SingleOrDefault/LastOrDefault overloads in .NET 6 has surfaced a bug in our Queryable-to-Enumerable method mapping logic in System.Linq.Queryable.

Testing

Added unit tests verifying that the regression no longer occurs.

Risk

Low to moderate. Updates the product code to account for the corner case introduced by the new overloads.

@ghostghost added the area-System.Linq label Feb 24, 2022
@ghost

Copy link
Copy Markdown

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

Issue Details

Backport of #65569 to release/6.0

/cc @eiriktsarpalis

Customer Impact

Testing

Risk

IMPORTANT: If this change touches code that ships in a NuGet package, please make certain that you have added any necessary package authoring and gotten it explicitly reviewed.

Author:github-actions[bot]
Assignees:-
Labels:

area-System.Linq

Milestone:-

@eiriktsarpaliseiriktsarpalis self-assigned this Feb 24, 2022
@eiriktsarpaliseiriktsarpalis added this to the 6.0.x milestone Feb 24, 2022
@eiriktsarpaliseiriktsarpalis added the Servicing-consider Issue for next servicing release review label Feb 24, 2022

@eerhardteerhardt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks like a clean backport. LGTM

@rbhandarbhanda added Servicing-approved Approved for servicing release and removed Servicing-consider Issue for next servicing release review labels Mar 1, 2022
@rbhandarbhanda modified the milestones: 6.0.x, 6.0.4Mar 1, 2022

@ericstjericstj left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM -- no need for package authoring as this only ships in framework.

@ericstj

Copy link
Copy Markdown
Member

Failure is fixed by #66366

@ericstj
ericstj merged commit 0048176 into release/6.0Mar 10, 2022
@eiriktsarpalis
eiriktsarpalis deleted the backport/pr-65569-to-release/6.0 branch March 10, 2022 20:56
@ghostghost locked as resolved and limited conversation to collaborators Apr 10, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.LinqServicing-approvedApproved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@ericstj@eerhardt@eiriktsarpalis@rbhanda