[Mono-bugs] [Bug 31889][Nor] Changed - mcs incorrectly allows accessing a protected property

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
11 Oct 2002 05:33:30 -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 miguel@ximian.com.

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

--- shadow/31889	Tue Oct  8 08:15:16 2002
+++ shadow/31889.tmp.2789	Fri Oct 11 01:33:30 2002
@@ -10,13 +10,12 @@
 Component: Misc
 AssignedTo: martin@gnome.org                            
 ReportedBy: gonzalo@ximian.com               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
-Cc: 
 Summary: mcs incorrectly allows accessing a protected property
 
 Steps to reproduce the problem:
 1. Try compiling:
 
 using System;
@@ -46,6 +45,17 @@
 Actual Results:
 Compilation succeeded.
 
 Expected Results:
 bugdata.cs(20,23): error CS0122: 'A.B.I' is inaccessible due to its
 protection level
+
+------- Additional Comments From miguel@ximian.com  2002-10-11 01:33 -------
+Martin, I have tracked this down to a bug in FindMembers with the
+cache, and am not sure how to fix this.  Basically, before we call the
+filter (on line 1214 in decl.cs) we should only do that if the
+BindingFlags permit it (we pass a flag: Public/NonPublic that we are
+currently ignoring).  The rest is taken care of for us, but we should
+check this flag.
+
+It should be a short bug fix, can you look into this?
+