[Mono-bugs] [Bug 36732][Nor] New - Mcs doesn't check the privacity of variables rightly
bugzilla-daemon@rocky.ximian.com
bugzilla-daemon@rocky.ximian.com
Tue, 14 Jan 2003 17:41:40 -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 pedroabelleira@yahoo.es.
http://bugzilla.ximian.com/show_bug.cgi?id=36732
--- shadow/36732 Tue Jan 14 17:41:40 2003
+++ shadow/36732.tmp.13910 Tue Jan 14 17:41:40 2003
@@ -0,0 +1,58 @@
+Bug#: 36732
+Product: Mono/MCS
+Version: unspecified
+OS:
+OS Details: RedHat 8.0
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Misc
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: pedroabelleira@yahoo.es
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Mcs doesn't check the privacity of variables rightly
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+Mcs doesn't check the privacity of a variable of a class in subclases
+
+Steps to reproduce the problem:
+
+public class A {
+ private int var;
+}
+
+public class B: A {
+ public void foo() {
+ var = 1;
+ }
+}
+
+public class Cl {
+ public static void Main() {
+ // Nothing
+ }
+}
+
+
+Actual Results:
+
+It compiles
+
+Expected Results:
+
+It should fail indicating the error
+
+How often does this happen?
+
+Oh, my!
+
+
+Additional Information:
+
+No. It's easy :-)