[Mono-bugs] [Bug 75479][Nor] Changed - mono_class_from_mono_type()/mono_type_get_underlying_type() and generics

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Feb 14 12:29:44 EST 2006


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 at gmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=75479

--- shadow/75479	2006-02-14 08:27:22.000000000 -0500
+++ shadow/75479.tmp.7557	2006-02-14 12:29:44.000000000 -0500
@@ -267,6 +267,15 @@
 The problem here is that mono_type_get_underlying_type() will return
 a broken type pointer, at least in the case of an instantiated generic
 struct. The low-level type is MONO_TYPE_VALUETYPE, but the MonoClass*
 pointer in it points to the uninstantiated generic struct and not the
 correct instantiated one, so when mono_class_from_mono_type() is
 called on it it gets the wrong info.
+
+------- Additional Comments From vargaz at gmail.com  2006-02-14 12:29 -------
+As Paolo said, the problem is not with calling/not calling
+get_underlying_type (), but with the fact that the type returned by
+get_underlying_type () is broken, and some info needs to be read from
+the original type. At least we should add some comment to
+get_underlying_type () to indicate its intended usage.
+
+


More information about the mono-bugs mailing list