[Mono-bugs] [Bug 52107][Nor] Changed - System.Reflection fails when JITted
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Fri, 19 Dec 2003 15:38:21 -0500 (EST)
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 piyush.garyali@honeywell.com.
http://bugzilla.ximian.com/show_bug.cgi?id=52107
--- shadow/52107 2003-12-18 08:15:38.000000000 -0500
+++ shadow/52107.tmp.3971 2003-12-19 15:38:21.000000000 -0500
@@ -221,6 +221,37 @@
correctly at all it's arguments and an argument check fails (hence the
ArgumentException...). Since exception support is not yet implemented,
the code fails later on.
If you still get the error with current cvs, you may want to add some
Console.WriteLine() in InvokeMember or debug which case makes it throw
the argument exception.
+
+------- Additional Comments From piyush.garyali@honeywell.com 2003-12-19 15:38 -------
+The testcase works fine for me but surprisingly only when the "--
+trace=all" is set. If the --trace=all is not set I get a Data
+Voilation exception pretty early when the following code from the
+test case is executed:
+
+[code]
+Console.WriteLine("Invoking the static method SayHello()");
+t.InvokeMember("SayHello", BindingFlags.InvokeMethod, null, null, new
+object [] {});
+TestClass c = new TestClass();
+
+.. shall attach the "Assembly generated"
+
+However, when the code is run using --trace=all, there are a couple
+of things which dont come as expected:
+*) Invoking static method ComputeSum() with arguments/parameters
+results in:
+ 0 + 0 = 0
+instead of:
+ 100.09 + 184.45 = 284.54
+
+*) Invoking the default member of the TestClass2 type, PrintTime()
+results in:
+00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,0
+0,08,9f,7f,f6,35,e2,b7,6c,08,9f,7f,f6,35,e2,b
+which fails for you as well.
+
+Rest all of the parts are working fine.
+