Skip to content

string.Join with first element null status #86823

@miloush

Description

@miloush

Reference issue: #5681 PR: dotnet/coreclr#8114

What a debugging nightmare having this behave differently in net6.0 and net48 targets indeed!

@stephentoub said:

As long as we port the fix back to desktop (under a quirk I guess, in particular since the behavior is documented) and fix the documentation, I'm ok with it.

It seems to me this breaking change has been sneaked in without fulfilling the stated conditions. https://learn.microsoft.com/en-us/dotnet/api/system.string.join?view=net-8.0#system-string-join(system-string-system-object()) still contains the remark and note for .NET 8.0 Preview 4 that empty string should be returned which it isn't, and targetting net481 still does return empty string. Has it been poretd back to desktop? If a quirk setting is available, it should be mentioned in the .NET Framework documentation as well.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions