[Mono-bugs] [Bug 555950] New: Array conversions not supported by Mono's runtime.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Nov 16 16:57:40 EST 2009


           Summary: Array conversions not supported by Mono's runtime.
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.6.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: JIT
        AssignedTo: lupus at novell.com
        ReportedBy: miguel at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

While reviewing the new ECMA standard, the issue that arrays of the same sizes
for native types (see Nigel's updated clarification on type compatibility on
the tc49-tg3 list) the following code should work:

class X {
    static void Main ()
        int [] a = new int [10];
        object b = a;
        uint [] c = (uint []) b;

Although the runtime allows this, there is no array copy, so the arrays both
point to the same value (a and c) and the call to c.GetType is still Int32[]
not UInt32 []

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

More information about the mono-bugs mailing list