[Mono-bugs] [Bug 37521][Nor] Changed - mcs does not allow access to protected events in subclasses

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Thu, 26 Jun 2003 00:38:01 -0400 (EDT)


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 mathpup@mylinuxisp.com.

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

--- shadow/37521	Fri Jun  6 02:36:45 2003
+++ shadow/37521.tmp.24920	Thu Jun 26 00:38:01 2003
@@ -136,6 +136,27 @@
  
 mouse.cs(9) error CS0122: `Qt.QtSupport+MousePressEvent' is inaccessible 
 because of its protection level 
  
 (Originally, mcs complained that name could not be found.) 
  
+
+------- Additional Comments From mathpup@mylinuxisp.com  2003-06-26 00:38 -------
+I've narrowed down the problem. mcs marks delegates as having accessibility 
+"public" even if they are protected, whereas csc marks them as "family" in that 
+case. Referring to the above test case, mcs has 
+ 
+.class auto ansi sealed nested public MousePressEvent 
+ 
+whereas csc has 
+ 
+.class auto ansi sealed nested family MousePressEvent 
+ 
+mcs seems to rely on the delegates' being marked as public. I compiled 
+event.cs to event.dll using csc, disassembled event.dll, and changes "family" to 
+"public" for the MousePressEvent class definition, and when I reassembled it, 
+mcs compiled mouse.cs against event.dll without complaint. 
+ 
+I do not know why mcs marks protected delegates as "public". This might be a 
+bug in mcs. 
+ 
+