[Mono-bugs] [Bug 74482][Wis] Changed - mono uses method param type instead of type in the Constant MD table to interpret the constant value
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 7 Apr 2005 10:33:12 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by vargaz@gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=74482
--- shadow/74482 2005-04-07 08:02:25.000000000 -0400
+++ shadow/74482.tmp.9976 2005-04-07 10:33:11.000000000 -0400
@@ -106,6 +106,18 @@
------- Additional Comments From radical@gmail.com 2005-04-07 08:02 -------
Created an attachment (id=14881)
Updated patch, with help,feedback from harinath
+
+------- Additional Comments From vargaz@gmail.com 2005-04-07 10:33 -------
+Some comments:
+- the 'type' variable needs to be freed after use in
+mono_param_get_objects ()
+- what is the reason behind this change:
+
+- if (!param->DefaultValueImpl) {
++ /* Type in the Constant table is MONO_TYPE_CLASS for nulls */
++ if (types [i] != MONO_TYPE_CLASS && !param->DefaultValueImpl)
+ param->DefaultValueImpl = dbnull;
+- }