[Mono-bugs] [Bug 77183][Nor] New - Using XML documentation on a method with a generic parameter causes a compilation error

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Jan 7 22:32:49 EST 2006


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 cutefuzzysquirrel at gmail.com.

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

--- shadow/77183	2006-01-07 22:32:49.000000000 -0500
+++ shadow/77183.tmp.31891	2006-01-07 22:32:49.000000000 -0500
@@ -0,0 +1,60 @@
+Bug#: 77183
+Product: Mono: Compilers
+Version: 1.1
+OS: All
+OS Details: Tested on OSX and Gentoo Linux
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: cutefuzzysquirrel at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Using XML documentation on a method with a generic parameter causes a compilation error
+
+Description of Problem:
+When compiling an assembly with XML documentation, a method that contains a
+generic parameter will cause the compilation to abort with the following error:
+
+error CS1569: Error generating XML documentation file `FILENAME.xml'
+(`Object reference not set to an instance of an object')
+
+Compiling without documentation results in no errors. Here is an example of
+a class that will cause this behavior:
+
+using System; 
+
+///<summary>This file throws an error when compiled with XML
+documentation</summary>
+public class GenericClass <gT>
+{
+    gT m_data; 
+
+    ///<summary>This line causes the error</summary>
+    public GenericClass (gT Data)
+    {
+        m_data = Data; 
+    }
+}
+
+
+Steps to reproduce the problem:
+1. Save the class above to a file
+2. Run `gmcs -t:library -doc:<FILENAME>.xml <FILENAME>.cs
+
+Actual Results:
+error CS1569: Error generating XML documentation file `FILENAME.xml'
+(`Object reference not set to an instance of an object')
+
+Expected Results:
+File should compile cleanly
+
+How often does this happen? 
+Every time
+
+Additional Information:
+Tested with gmcs versions 1.1.5.0 and 1.1.11.0


More information about the mono-bugs mailing list