[Mono-bugs] [Bug 75527][Maj] New - Method not declared as virtual

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Jul 11 10:40:48 EDT 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 s_schmid at informatik.uni-kl.de.

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

--- shadow/75527	2005-07-11 10:40:48.000000000 -0400
+++ shadow/75527.tmp.27061	2005-07-11 10:40:48.000000000 -0400
@@ -0,0 +1,47 @@
+Bug#: 75527
+Product: Mono: Runtime
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: remoting
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: s_schmid at informatik.uni-kl.de               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Method not declared as virtual
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+When trying to override the method
+"MarshalByRefObject.GetLifetimeService()" the mcs-compiler stops, because
+this method is not declared as "virtual" in the runtime environment.
+
+Steps to reproduce the problem:
+1. Create a class that extends MarshalByRefObject 
+2. insert "public override object GetLifetimeService(){ return null; }"
+3. compile
+
+Actual Results:
+it doesn't compile
+
+Expected Results:
+it should compile
+
+How often does this happen? 
+everytime
+
+Additional Information:
+the MSDN C# API Documentation shows, that this method should be declared as
+virtual. see at
+http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemmarshalbyrefobjectclassgetlifetimeservicetopic.asp
+
+the Mono-Project API Documentation does not say the same:
+http://www.go-mono.com/docs/monodoc.ashx?link=M%3aSystem.MarshalByRefObject.GetLifetimeService%28%29


More information about the mono-bugs mailing list