Skip to content
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

[release/8.0-staging] Fix JsonArray.Add and ReplaceWith regressions. #94882

Merged
Expand Up @@ -18,7 +18,7 @@
/// </remarks>
[DebuggerDisplay("JsonArray[{List.Count}]")]
[DebuggerTypeProxy(typeof(DebugView))]
public sealed partial class JsonArray : JsonNode

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Release AllSubsets_Mono_LLVMAOT)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build android-arm64 Release AllSubsets_Mono)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build ios-arm64 Release AllSubsets_NativeAOT)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build tvos-arm64 Release AllSubsets_Mono)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build Libraries Build osx x64 Debug)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build tvossimulator-x64 Debug AllSubsets_Mono)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-arm64 Release NativeAOT_Libraries)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build tvos-arm64 Release AllSubsets_NativeAOT)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug AllSubsets_Mono_LLVMAOT)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build maccatalyst-x64 Release AllSubsets_Mono)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build ios-arm64 Release AllSubsets_Mono)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Release AllSubsets_Mono_LLVMJIT)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests (Build osx-x64 release Runtime_Release)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm Debug AllSubsets_Mono)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug AllSubsets_Mono_LLVMJIT)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build Libraries Build linux x64 Debug)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Release AllSubsets_Mono)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build Libraries Build linux arm Release)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build android-arm Release AllSubsets_Mono)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build wasi-wasm linux Release LibraryTests_Smoke)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build Libraries Build linux_musl arm Release)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build Libraries Build linux_musl arm64 Release)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build Libraries Build linux_musl x64 Debug)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build Libraries Build linux arm64 Debug)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build Libraries Build freebsd x64 Debug)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build browser-wasm linux Release LibraryTests_AOT)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build browser-wasm linux Release LibraryTests_EAT)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build browser-wasm linux Release LibraryTests)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Release AllSubsets_Mono_LLVMAOT)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Release NativeAOT_Libraries)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build browser-wasm linux Release LibraryTests_Threading_Smoke)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests (Build browser-wasm linux release Runtime_Release)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests (Build linux-x64 release Runtime_Release)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'

Check failure on line 21 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime-dev-innerloop

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L21

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(21,33): error CS0534: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray' does not implement inherited abstract member 'JsonNode.GetPath(List<string>, JsonNode?)'
{
private JsonElement? _jsonElement;
private List<JsonNode?>? _list;
Expand Down Expand Up @@ -174,13 +174,7 @@
[RequiresDynamicCode(JsonValue.CreateDynamicCodeMessage)]
public void Add<T>(T? value)
{
JsonNode? nodeToAdd = value switch
{
null => null,
JsonNode node => node,
_ => JsonValue.Create(value, Options)
};

JsonNode? nodeToAdd = ConvertFromValue(value, Options);
Add(nodeToAdd);
}

Expand All @@ -201,7 +195,7 @@
List[index] = value;
}

internal override void GetPath(List<string> path, JsonNode? child)

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Release AllSubsets_Mono_LLVMAOT)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build android-arm64 Release AllSubsets_Mono)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build ios-arm64 Release AllSubsets_NativeAOT)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build tvos-arm64 Release AllSubsets_Mono)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build Libraries Build osx x64 Debug)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build tvossimulator-x64 Debug AllSubsets_Mono)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-arm64 Release NativeAOT_Libraries)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build tvos-arm64 Release AllSubsets_NativeAOT)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug AllSubsets_Mono_LLVMAOT)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build maccatalyst-x64 Release AllSubsets_Mono)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build ios-arm64 Release AllSubsets_Mono)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Release AllSubsets_Mono_LLVMJIT)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests (Build osx-x64 release Runtime_Release)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm Debug AllSubsets_Mono)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug AllSubsets_Mono_LLVMJIT)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build Libraries Build linux x64 Debug)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Release AllSubsets_Mono)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build Libraries Build linux arm Release)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build android-arm Release AllSubsets_Mono)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build wasi-wasm linux Release LibraryTests_Smoke)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build Libraries Build linux_musl arm Release)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build Libraries Build linux_musl arm64 Release)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build Libraries Build linux_musl x64 Debug)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build Libraries Build linux arm64 Debug)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build Libraries Build freebsd x64 Debug)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build browser-wasm linux Release LibraryTests_AOT)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build browser-wasm linux Release LibraryTests_EAT)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build browser-wasm linux Release LibraryTests)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Release AllSubsets_Mono_LLVMAOT)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Release NativeAOT_Libraries)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime (Build browser-wasm linux Release LibraryTests_Threading_Smoke)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests (Build browser-wasm linux release Runtime_Release)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests (Build linux-x64 release Runtime_Release)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override

Check failure on line 198 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs

View check run for this annotation

Azure Pipelines / runtime-dev-innerloop

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs#L198

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonArray.cs(198,32): error CS0115: (NETCORE_ENGINEERING_TELEMETRY=Build) 'JsonArray.GetPath(List<string>, JsonNode?)': no suitable method found to override
{
if (child != null)
{
Expand Down
@@ -1,8 +1,9 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Text.Json.Serialization.Converters;
using System.Text.Json.Serialization.Metadata;

namespace System.Text.Json.Nodes
{
Expand Down Expand Up @@ -143,7 +144,7 @@
return sb.ToString();
}

internal abstract void GetPath(List<string> path, JsonNode? child);

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Release AllSubsets_Mono_LLVMAOT)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build android-arm64 Release AllSubsets_Mono)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build Libraries Build osx arm64 Debug)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build ios-arm64 Release AllSubsets_NativeAOT)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build tvos-arm64 Release AllSubsets_Mono)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build Libraries Build osx x64 Debug)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build tvossimulator-x64 Debug AllSubsets_Mono)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-arm64 Release NativeAOT_Libraries)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build tvos-arm64 Release AllSubsets_NativeAOT)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug AllSubsets_Mono_LLVMAOT)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build maccatalyst-x64 Release AllSubsets_Mono)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build ios-arm64 Release AllSubsets_Mono)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Release AllSubsets_Mono_LLVMJIT)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests (Build osx-x64 release Runtime_Release)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm Debug AllSubsets_Mono)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug AllSubsets_Mono_LLVMJIT)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build Libraries Build linux x64 Debug)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Release AllSubsets_Mono)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-riscv64 Release AllSubsets_Mono)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug AllSubsets_Mono_LLVMJIT)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build Libraries Build linux arm Release)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build android-arm Release AllSubsets_Mono)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build wasi-wasm linux Release LibraryTests_Smoke)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build Libraries Build linux_musl arm Release)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build Libraries Build linux_musl arm64 Release)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build Libraries Build linux_musl x64 Debug)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build Libraries Build linux arm64 Debug)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build Libraries Build freebsd x64 Debug)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build browser-wasm linux Release LibraryTests_AOT)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build browser-wasm linux Release LibraryTests_EAT)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build browser-wasm linux Release LibraryTests)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Release AllSubsets_Mono_LLVMAOT)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Release NativeAOT_Libraries)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime (Build browser-wasm linux Release LibraryTests_Threading_Smoke)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests (Build browser-wasm linux release Runtime_Release)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests (Build linux-x64 release Runtime_Release)

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 147 in src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs

View check run for this annotation

Azure Pipelines / runtime-dev-innerloop

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs#L147

src/libraries/System.Text.Json/src/System/Text/Json/Nodes/JsonNode.cs(147,40): error CS0246: (NETCORE_ENGINEERING_TELEMETRY=Build) The type or namespace name 'List<>' could not be found (are you missing a using directive or an assembly reference?)

/// <summary>
/// Gets the root <see cref="JsonNode"/>.
Expand Down Expand Up @@ -316,17 +317,16 @@
[RequiresDynamicCode(JsonValue.CreateDynamicCodeMessage)]
public void ReplaceWith<T>(T value)
{
JsonNode? node;
switch (_parent)
{
case null:
return;
case JsonObject jsonObject:
JsonValue? jsonValue = JsonValue.Create(value);
jsonObject.SetItem(GetPropertyName(), jsonValue);
node = ConvertFromValue(value);
jsonObject.SetItem(GetPropertyName(), node);
return;
case JsonArray jsonArray:
JsonValue? jValue = JsonValue.Create(value);
jsonArray.SetItem(GetElementIndex(), jValue);
node = ConvertFromValue(value);
jsonArray.SetItem(GetElementIndex(), node);
return;
}
}
Expand All @@ -351,5 +351,33 @@

Parent = parent;
}

/// <summary>
/// Adaptation of the equivalent JsonValue.Create factory method extended
/// to support arbitrary <see cref="JsonElement"/> and <see cref="JsonNode"/> values.
/// TODO consider making public cf. https://github.com/dotnet/runtime/issues/70427
/// </summary>
[RequiresUnreferencedCode(JsonSerializer.SerializationUnreferencedCodeMessage)]
[RequiresDynamicCode(JsonSerializer.SerializationRequiresDynamicCodeMessage)]
internal static JsonNode? ConvertFromValue<T>(T? value, JsonNodeOptions? options = null)
{
if (value is null)
{
return null;
}

if (value is JsonNode node)
{
return node;
}

if (value is JsonElement element)
{
return JsonNodeConverter.Create(element, options);
}

var jsonTypeInfo = (JsonTypeInfo<T>)JsonSerializerOptions.Default.GetTypeInfo(typeof(T));
return new JsonValueCustomized<T>(value, jsonTypeInfo, options);
}
}
}
Expand Up @@ -680,5 +680,74 @@ public static void ReplaceWith()
Assert.Null(jValue.Parent);
Assert.Equal("[5]", jArray.ToJsonString());
}

[Theory]
[InlineData("null")]
[InlineData("1")]
[InlineData("false")]
[InlineData("\"str\"")]
[InlineData("""{"test":"hello world"}""")]
[InlineData("[1,2,3]")]
public static void AddJsonElement(string json)
{
// Regression test for https://github.com/dotnet/runtime/issues/94842
using var jdoc = JsonDocument.Parse(json);
var array = new JsonArray();

array.Add(jdoc.RootElement);

JsonNode arrayElement = Assert.Single(array);
switch (jdoc.RootElement.ValueKind)
{
case JsonValueKind.Object:
Assert.IsAssignableFrom<JsonObject>(arrayElement);
break;
case JsonValueKind.Array:
Assert.IsAssignableFrom<JsonArray>(arrayElement);
break;
case JsonValueKind.Null:
Assert.Null(arrayElement);
break;
default:
Assert.IsAssignableFrom<JsonValue>(arrayElement);
break;
}
Assert.Equal($"[{json}]", array.ToJsonString());
}

[Theory]
[InlineData("null")]
[InlineData("1")]
[InlineData("false")]
[InlineData("\"str\"")]
[InlineData("""{"test":"hello world"}""")]
[InlineData("[1,2,3]")]
public static void ReplaceWithJsonElement(string json)
{
// Regression test for https://github.com/dotnet/runtime/issues/94842
using var jdoc = JsonDocument.Parse(json);
var array = new JsonArray { 1 };

array[0].ReplaceWith(jdoc.RootElement);

JsonNode arrayElement = Assert.Single(array);
switch (jdoc.RootElement.ValueKind)
{
case JsonValueKind.Object:
Assert.IsAssignableFrom<JsonObject>(arrayElement);
break;
case JsonValueKind.Array:
Assert.IsAssignableFrom<JsonArray>(arrayElement);
break;
case JsonValueKind.Null:
Assert.Null(arrayElement);
break;
default:
Assert.IsAssignableFrom<JsonValue>(arrayElement);
break;
}

Assert.Equal($"[{json}]", array.ToJsonString());
}
}
}