[Mono-bugs] [Bug 25983] New - warning of a 'new' keyword missing gives NullRef

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
7 Jun 2002 23:42:54 -0000


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 davh@davh.dk.

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

--- shadow/25983	Fri Jun  7 19:42:54 2002
+++ shadow/25983.tmp.18238	Fri Jun  7 19:42:54 2002
@@ -0,0 +1,51 @@
+Bug#: 25983
+Product: Mono/MCS
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: davh@davh.dk               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: warning of a 'new' keyword missing gives NullRef
+
+** (process:1387): WARNING **: unhandled exception
+System.NullReferenceException: "A null value was found where an object
+instance was required"
+in <0x000b8> Mono.CSharp.TypeContainer:Warning_KeywordNewRequired
+(Mono.CSharp.Location,System.Reflection.MemberInfo)
+in <0x00292> Mono.CSharp.TypeContainer:DefineMembers
+(System.Collections.ArrayList,System.Reflection.MemberInfo[])
+in <0x00274> Mono.CSharp.TypeContainer:Define (Mono.CSharp.TypeContainer)
+in <0x00318> Mono.CSharp.RootContext:PopulateTypes ()
+in <0x01a7c> Mono.CSharp.Driver:MainDriver (string[])
+in <0x00009> Mono.CSharp.Driver:Main (string[])
+
+
+compiling this:
+
+class super {
+  public string I
+    {
+      get{ return "Super";}
+    }
+  public string i = "Super";
+}
+
+class lvl1 : super {
+  string I
+    {
+      get{ return "lvl1 ";}
+    }
+  new string i = "lvl1 ";
+}
+
+
+Dup of 25367??