[Mono-bugs] [Bug 50820][Maj] Changed - mcs allows incorrect protected access

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 28 May 2004 09:34:07 -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 rharinath@novell.com.

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

--- shadow/50820	2004-05-28 09:19:59.000000000 -0400
+++ shadow/50820.tmp.12247	2004-05-28 09:34:07.000000000 -0400
@@ -98,6 +98,28 @@
 
 
 ------- Additional Comments From rharinath@novell.com  2004-05-28 09:19 -------
 Created an attachment (id=7889)
 more elaborate patch
 
+
+------- Additional Comments From rharinath@novell.com  2004-05-28 09:34 -------
+I've attached a more elaborate version of Ben's patch.  This'll give 
+the same error message as CSC above.
+
+I have checked the breakage in 'monodoc'.  AFAI can make out, the
+error message is correct.  Both Gtk.Setting and Monodoc.BigList derive
+from Glib.Object, but they're on different branches.
+
+Monodoc.BigList cannot access a protected member from Glib.Object on a
+class/object from a different branch.
+
+Here's the output with the new patch:
+
+monodoc/browser/list.cs(220) error CS1540: Cannot access protected
+member `GLib.Object.GetProperty' via a qualifier of type
+`Gtk.Settings'; the qualifier must be of type `Monodoc.BigList' (or
+derived from it)
+
+The only option seems to be making Glib.Object.GetProperty a public
+method.
+