[Mono-bugs] [Bug 367655] New: Reflection should promote System.Char arguments to System .Double

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Mar 6 01:18:37 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=367655


           Summary: Reflection should promote System.Char arguments to
                    System.Double
           Product: Mono: Class Libraries
           Version: 1.9.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: CORLIB
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: jeroen at sumatra.nl
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


This program prints "42" on .NET whereas Mono 1.9 throws a
System.InvalidCastException.

class Program
{
  public static void DoubleMethod(double d)
  {
    System.Console.WriteLine(d);
  }

  static void Main(string[] args)
  {
    typeof(Program).GetMethod("DoubleMethod").Invoke(null, new object[] {
(char)42 });
  }
}


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list