[Mono-bugs] [Bug 345467] New: [Regression] Calling a generic method from inside an anonymous method passed to a method causes exceptions

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Dec 3 00:24:34 EST 2007


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

           Summary: [Regression] Calling a generic method from inside an
                    anonymous method passed to a method causes exceptions
           Product: Mono: Compilers
           Version: 1.2.6
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Blocker
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: abockover at novell.com
         QAContact: mono-bugs at ximian.com
                CC: twiest at novell.com, msafar at novell.com
          Found By: ---


This regression affects actual code we are using in Banshee (the new managed
MusicBrainz library) [1]. The code compiles fine using csc and used to compile
with gmcs 1.2.5.

I have extracted two test cases. Each test throws a separate compiler
exception, but the root of the problem is the same.

The attached cases will explain the problem in detail.

I would appreciate the product code [1] be tested after the test cases are
tested and shown to be working.

Thanks!

[1]

$ svn co http://svn.gnome.org/svn/banshee/trunk/musicbrainz-sharp
$ ./autogen.sh
$ make

Unhandled Exception: Mono.CSharp.InternalErrorException:
/MusicBrainz/MusicBrainzObject.cs(382,13):
<>c__CompilerGenerated5<MusicBrainz.MusicBrainzObject.T>.<5:results> --->
System.NullReferenceException: Object reference not set to an instance of an
object


-- 
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