[Mono-bugs] [Bug 69259][Wis] New - Compilation causes NullReferenceException in Mono.CSharp.PendingImplementation

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 8 Nov 2004 19:47:09 -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 dolapo@minivishnu.net.

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

--- shadow/69259	2004-11-08 19:47:09.000000000 -0500
+++ shadow/69259.tmp.20371	2004-11-08 19:47:09.000000000 -0500
@@ -0,0 +1,72 @@
+Bug#: 69259
+Product: Mono: Compilers
+Version: 1.1
+OS: 
+OS Details: Mac OS X 10.3.6
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: C#
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: dolapo@minivishnu.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Compilation causes NullReferenceException in Mono.CSharp.PendingImplementation
+
+Description of Problem:
+Compiling sample causes NullReferenceException in
+Mono.CSharp.PendingImplementation
+
+Steps to reproduce the problem:
+1. 
+Attempt to compile this sample
+using System;
+
+namespace My.Namespace {
+
+
+    public interface IMyInterface {
+
+        String InterfaceProperty { get; }
+    }
+
+    public abstract class MyInterfaceBase : IMyInterface {
+
+        protected abstract String SubclassProperty { get; }
+
+        public String InterfaceProperty { get { return
+this.SubclassProperty; } }
+    }
+
+    public class MyBaseClass : IMyInterface, MyInterfaceBase {
+        protected override String SubclassProperty { get { return "foo"; } }
+    }
+}
+
+2. mcs IMyInterface.cs
+
+Actual Results:
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object
+in <0x0015c> Mono.CSharp.PendingImplementation:.ctor
+(Mono.CSharp.TypeContainer,Mono.CSharp.PendingImplementation/MissingInterfacesInfo[],System.Collections.ArrayList,int)
+in <0x0019c> Mono.CSharp.PendingImplementation:GetPendingImplementations
+(Mono.CSharp.TypeContainer)
+in <0x00020> Mono.CSharp.ClassOrStruct:GetPendingImplementations ()
+in <0x00544> Mono.CSharp.TypeContainer:DoDefineMembers ()
+in <0x00044> Mono.CSharp.TypeContainer:DefineMembers
+(Mono.CSharp.TypeContainer)
+in <0x003c4> Mono.CSharp.RootContext:PopulateTypes ()
+in <0x00e1c> Mono.CSharp.Driver:MainDriver (string[])
+in <0x0002c> Mono.CSharp.Driver:Main (string[])
+
+Expected Results:
+Compilation Succeeded.
+
+How often does this happen? 
+Everytime.
+
+Additional Information: