[Mono-bugs] [Bug 648833] New: GetArrayRank is loading to aggressively

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Oct 23 05:15:41 EDT 2010



           Summary: GetArrayRank is loading to aggressively
    Classification: Mono
           Product: Mono: Runtime
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: rkumpera at novell.com
        ReportedBy: msafar at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

GetArrayRank and MakeArray are both loading too much.

Compile & Run

using System;
using System.Collections.Generic;
using System.Reflection;

class Program
    static void Main (string[] args)
        var a = Assembly.LoadFrom ("bug-0-lib.dll");
        var t = a.GetType ("A`1").MakeArrayType ();
        t.GetArrayRank ();

no error


Could not load file or assembly 'bug-1-lib, Version=, Culture=neutral,
PublicKeyToken=null' or one of its dependencies.

Unhandled Exception: System.TypeLoadException: Could not load type 'A`1[T]'
from assembly 'bug-0-lib, Version=, Culture=neutral,
  at (wrapper managed-to-native) System.Type:make_array_type (System.Type*,int)
  at System.Type.MakeArrayType () [0x00000] in <filename unknown>:0 
  at Program.Main (System.String[] args) [0x00000] in <filename unknown>:0

Configure bugmail: https://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