[Mono-bugs] [Bug 76406][Nor] New - System.Reflection.PropertyInfo.SetValue () breaks with nullable types

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Oct 11 08:44:44 EDT 2005


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 axel at banzais.org.

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

--- shadow/76406	2005-10-11 08:44:44.000000000 -0400
+++ shadow/76406.tmp.24835	2005-10-11 08:44:44.000000000 -0400
@@ -0,0 +1,39 @@
+Bug#: 76406
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: gmcs 1.1.5.0, mono 1.1.8.3-1ubuntu2 (also tried 1.1.9)
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: axel at banzais.org               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.Reflection.PropertyInfo.SetValue () breaks with nullable types
+
+Description of Problem:
+
+I get weird behavior when trying to assign to a nullable object property
+via system.reflection. The source builds fine, but at runtime I get the
+following error:
+
+** ERROR **: type 0x15 not handled in ves_icall_InternalInvoke
+aborting...
+
+That does not look like an exception, but more like a GLib failed assertion
+at some lower level... 
+
+
+This seems to happen in MS C# compiler as well, I found the following
+references:
+http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=7958adfb-fceb-4f16-b9d6-e94b02e78729
+http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=15304
+http://lab.msdn.microsoft.com/productfeedback/ViewWorkaround.aspx?FeedbackID=FDBK15238#1
+
+However, the solutions in those pages imply use Nullable.Wrap () and
+Nullabe.Unwrap (), AFAIK those do not exist in mono svn (checked oct 11 2005).


More information about the mono-bugs mailing list