Fix ambiguous interface method error message (#16341)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Tue, 13 Feb 2018 07:19:30 +0000 (08:19 +0100)
committerGitHub <noreply@github.com>
Tue, 13 Feb 2018 07:19:30 +0000 (08:19 +0100)
Fixes #15864.

src/dlls/mscorrc/mscorrc.rc
src/vm/methodtable.cpp

index fb6dcd6..00a068c 100644 (file)
@@ -1251,7 +1251,7 @@ BEGIN
     IDS_CLASSLOAD_MI_MUSTBEVIRTUAL          "Method '%3' on type '%1' from assembly '%2' must be virtual to implement a method on an interface or super type."
     IDS_CLASSLOAD_MI_BAD_SIG                "Type '%1' from assembly '%2' contains an invalid method implementation signature."
     IDS_CLASSLOAD_MI_FINAL_IMPL             "Method implementation on an interface '%1' from assembly '%2' must be a final method."
-    IDS_CLASSLOAD_AMBIGUOUS_OVERRIDE        "Could not call method '%1' on interface '%2' with type '%3' from assembly '%4' because there are more than one incompatible interface method overriding this method."
+    IDS_CLASSLOAD_AMBIGUOUS_OVERRIDE        "Could not call method '%1' on interface '%2' with type '%3' from assembly '%4' because there are multiple incompatible interface methods overriding this method."
 
     IDS_CLASSLOAD_MISSINGMETHODRVA          "Could not load type '%1' from assembly '%2' because the method '%3' has no implementation (no RVA)."
     SECURITY_E_INCOMPATIBLE_EVIDENCE        "Assembly '%1' already loaded without additional security evidence."
index 76d490d..e8f9dcc 100644 (file)
@@ -7072,8 +7072,8 @@ void ThrowExceptionForConflictingOverride(
     COMPlusThrow(
         kNotSupportedException,
         IDS_CLASSLOAD_AMBIGUOUS_OVERRIDE,
-        strInterfaceName,
         strMethodName,
+        strInterfaceName,
         strTargetClassName,
         assemblyName);
 }