Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[runtime/corlib] Improve MissingMethodExceptions by including message and signature. Fixes #60505 #5941
This PR is missing the following and I'd love if someone could help me here.
Figure out serialization for MethodMissingException - and whether it's ok to break it?
Sort out linker support, this PR adds a dependency to a private constructor so we need the linker to special case it.
…… and signature. Fixes #60505 This fix is a bit weird but it's due to some restrictions of the managed API. MissingMemberException & friends require both ClassName and MemberName to be supplied independently, so the signature can't simply be applied to MemberName. So we pass it on a separate field. The next thing is that we want C#'esque signatures, where the return type comes before ClassName.MemberName, so we pass a format string and apply it in managed.