[Mono-bugs] [Bug 27751][Maj] Changed - Invoking an static method fails with the JIT

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
16 Jul 2002 08:39:56 -0000


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 dietmar@ximian.com.

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

--- shadow/27751	Sat Jul 13 12:28:13 2002
+++ shadow/27751.tmp.2191	Tue Jul 16 04:39:56 2002
@@ -1,14 +1,14 @@
 Bug#: 27751
 Product: Mono/Runtime
 Version: unspecified
-OS: 
+OS: unknown
 OS Details: 
 Status: NEW   
 Resolution: 
-Severity: 
+Severity: Unknown
 Priority: Major
 Component: misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: gonzalo@ximian.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
@@ -50,6 +50,17 @@
 e an object instance was required"
 in <0x00062> (runtime invoke wrapper) .MyClass:Main (object,intptr,intptr)
 
 Expected Results:
 Color [Red]
 (though there is a bug in the library that makes it output [255,255,0,0]
+
+------- Additional Comments From dietmar@ximian.com  2002-07-16 04:39 -------
+The problem is that you call GetValue with null as first argument:
+
+prop.GetValue (null, null);
+
+our class lib simply calls ret = method.Invoke(obj, ...) with a null
+this pointer (obj == null), which causes the exception (see
+MonoProperty.cs (GetValue))
+
+