Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs
diff options
context:
space:
mode:
authorCarlos Alberto Cortez <calberto.cortez@gmail.com>2010-01-22 07:46:34 +0300
committerCarlos Alberto Cortez <calberto.cortez@gmail.com>2010-01-22 07:46:34 +0300
commit73dd6f0b48ca3520ce5c230281b7262df40cbb5d (patch)
tree31de7956ddc57d7a6ae9ddc3bf8d8a17eeb37e21 /mcs
parent5b9ed19fc2eb43e41620572d1084c83d88448b0a (diff)
2010-01-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
* Activator.cs: When calling CreateInstance() and no default .ctor is found for the type, don't pass the member argument to the MissingMethodException, to have a better and simpler error message. Fixes #396986. svn path=/trunk/mcs/; revision=150039
Diffstat (limited to 'mcs')
-rw-r--r--mcs/class/corlib/System/Activator.cs4
-rw-r--r--mcs/class/corlib/System/ChangeLog7
2 files changed, 9 insertions, 2 deletions
diff --git a/mcs/class/corlib/System/Activator.cs b/mcs/class/corlib/System/Activator.cs
index 195b98054ae..96cfa7c4ef4 100644
--- a/mcs/class/corlib/System/Activator.cs
+++ b/mcs/class/corlib/System/Activator.cs
@@ -317,8 +317,8 @@ namespace System
if (type.IsValueType)
return CreateInstanceInternal (type);
- throw new MissingMethodException (Locale.GetText ("Default constructor not found."),
- ".ctor() of " + type.FullName);
+ throw new MissingMethodException (Locale.GetText ("Default constructor not found for type " +
+ type.FullName + "."));
}
return ctor.Invoke (null);
diff --git a/mcs/class/corlib/System/ChangeLog b/mcs/class/corlib/System/ChangeLog
index 591aa825802..b708e7a18d9 100644
--- a/mcs/class/corlib/System/ChangeLog
+++ b/mcs/class/corlib/System/ChangeLog
@@ -1,3 +1,10 @@
+2010-01-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
+
+ * Activator.cs: When calling CreateInstance() and no default .ctor is
+ found for the type, don't pass the member argument to the
+ MissingMethodException, to have a better and simpler error message.
+ Fixes #396986.
+
2010-01-20 Gonzalo Paniagua Javier <gonzalo@novell.com>
* Tuples.cs: explicitly implement IStructural*.