[Mono-bugs] [Bug 76692][Nor] New - CS1574 reported for reference to protected method with arguments

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Nov 13 10:42:14 EST 2005


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 gert.driesen at pandora.be.

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

--- shadow/76692	2005-11-13 10:42:14.000000000 -0500
+++ shadow/76692.tmp.28565	2005-11-13 10:42:14.000000000 -0500
@@ -0,0 +1,67 @@
+Bug#: 76692
+Product: Mono: Compilers
+Version: 1.1
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: C#
+AssignedTo: rharinath at novell.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: CS1574 reported for reference to protected method with arguments
+
+When referring to a protected method with arguments using a <see 
+cref="..." /> element, mcs always reports warning CS1574.
+
+To reproduce this issue, compile the following code snippet (using 
+mcs /doc:test.xml test.cs):
+
+/// <summary>
+/// <see cref="Create" />
+/// <see cref="Define" />
+/// <see cref="Undefine" />
+/// <see cref="Remove" />
+/// <see cref="Destroy" />
+/// </summary>
+public class EntryPoint {
+	static void Main () {
+	}
+
+	protected void Create (bool test) {
+		Define (true);
+	}
+
+	private void Define (bool test) {
+	}
+
+	protected void Undefine (bool test) {
+	}
+
+	protected void Remove () {
+	}
+
+	public virtual void Destroy (bool test) {
+	}
+}
+
+Actual result:
+
+test.cs(8,14): warning CS1574: XML Comment on 'EntryPoint' has cref 
+attribute 'Create' that could not be resolved
+test.cs(8,14): warning CS1574: XML Comment on 'EntryPoint' has cref 
+attribute 'Undefine' that could not be resolved
+
+Note that no warning is report for:
+- Define: this method has arguments, but is private
+- Remove: this method has no arguments
+- Destroy: this method has arguments, but is public
+
+Expected result:
+
+No warnings.


More information about the mono-bugs mailing list