[Mono-bugs] [Bug 508532] New: [2.0] Assembly.GetType should throw TypeLoadException when type cannot be loaded

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat May 30 10:55:19 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=508532


           Summary: [2.0] Assembly.GetType should throw TypeLoadException
                    when type cannot be loaded
    Classification: Mono
           Product: Mono: Runtime
           Version: SVN
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: gert.driesen at pandora.be
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1;
Trident/4.0; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 1.0.3705; .NET CLR
3.0.04506.30; .NET CLR 3.0.04506.590; .NET CLR 3.0.04506.648; .NET CLR
3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

On the 2.0 profile (and higher), Assembly.GetType should throw a
TypeLoadException when the specified type exists but cannot be loaded (eg. due
to missing base class)

Note that on the 1.0 profile, Assembly.GetType should return null in this case.


Reproducible: Always

Steps to Reproduce:
1. extract the attached gzipped tar.
2. run 'make'.
Actual Results:  
The following output is written to stdout:

** (test.exe:4520): WARNING **: The class TypeLoad.A could not be loaded, used
i
n A, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null

Unhandled Exception: System.Exception: #A1
  at Program.Main () [0x00000]

Expected Results:  
Nothing is written to stdout/stderr, and the application finishes with success
exit code.

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