[Mono-bugs] [Bug 71395][Cos] New - monodis does not show proper generic types

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 18 Jan 2005 08:50:16 -0500 (EST)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by nazgul@omega.pl.

http://bugzilla.ximian.com/show_bug.cgi?id=71395

--- shadow/71395	2005-01-18 08:50:16.000000000 -0500
+++ shadow/71395.tmp.19946	2005-01-18 08:50:16.000000000 -0500
@@ -0,0 +1,73 @@
+Bug#: 71395
+Product: Mono: Compilers
+Version: 1.0
+OS: 
+OS Details: Mandrake Linux 10.1, mono from svn HEAD
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Cosmetic
+Component: Other.
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: nazgul@omega.pl               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: monodis does not show proper generic types 
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+monodis prints types incorrecty, when they are generic. Sometimes it just
+fails. 
+
+Steps to reproduce the problem:
+1. Compile following code with gmcs
+using System.Collections.Generic;
+
+class A {
+  public static void Main () {
+    List <int> x = new List <int> ();
+  }
+}
+
+2. monodis Generic.exe
+3. Compile following code
+
+using System.Collections.Generic;
+
+class A {
+  public static void Main () {
+    List <int> x = new List <int> ();
+    x.Add (1);
+  }
+}
+
+4. monodis Generic.exe
+
+Actual Results:
+...
+IL_0000:  newobj instance void class
+[mscorlib]System.Collections.Generic.'List`1'::.ctor()
+...
+
+and in second testcase also:
+** ERROR **: file metadata.c: line 1764
+(mono_metadata_parse_generic_param): assertion failed: (generic_context)
+aborting...
+        IL_0008:  callvirt Aborted
+
+
+Expected Results:
+...
+  IL_0000:  newobj     instance void class
+[mscorlib]System.Collections.Generic.'List`1'<int32>::.ctor()
+...
+
+(it looks so in MS ilsasm executed on gmcs generated assembly)
+
+How often does this happen? 
+Always
+
+Additional Information: