Skip to content

Can not deserialize on .net 9 #363

@Mutuduxf

Description

@Mutuduxf

When deserialize the Jil throw an exception like:

System.Reflection.AmbiguousMatchException: Ambiguous match found for 'System.TimeSpan System.TimeSpan FromSeconds(Int64)'.
at System.RuntimeType.GetMethodImplCommon(String name, Int32 genericParameterCount, BindingFlags bindingAttr, Binder binder, CallingConventions callConv, Type[] types, ParameterModifier[] modifiers)
at System.Type.GetMethod(String name, BindingFlags bindingAttr)
at Jil.Deserialize.InlineDeserializer`1..cctor()

Jil Version: 2.17.0
DotNet Version: 9.0.100

Also, it can pass through from Net Core 3.1 to Net 8.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions