[Mono-bugs] [Bug 36315][Wis] Changed - classes without access specifier must be internal, not public

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Mon, 13 Jan 2003 15:03:38 -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 jpo234@netscape.net.

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

--- shadow/36315	Wed Jan  8 16:55:04 2003
+++ shadow/36315.tmp.27146	Mon Jan 13 15:03:38 2003
@@ -1,12 +1,12 @@
 Bug#: 36315
 Product: Mono/MCS
 Version: unspecified
 OS: Red Hat 8.0
 OS Details: 
-Status: NEEDINFO   
+Status: REOPENED   
 Resolution: 
 Severity: Unknown
 Priority: Wishlist
 Component: Misc
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: jpo234@netscape.net               
@@ -43,6 +43,39 @@
 
 ------- Additional Comments From miguel@ximian.com  2003-01-08 16:55 -------
 I am setting this bug state to NEEDINFO, as the attached programs do
 not expose the described problem of this bug.  Please file another bug
 report, but include the correct files.  This bug only contained the
 namespace files.
+
+------- Additional Comments From jpo234@netscape.net  2003-01-13 15:03 -------
+Ah, sorry. I forgot part of the description. Here it comes:
+
+Compiling with csc gives:
+
+F:\namespace>csc /t:library namespace1.cs namespace2.cs
+Microsoft (R) Visual C# .NET Compiler version 7.00.9466
+for Microsoft (R) .NET Framework version 1.0.3705
+Copyright (C) Microsoft Corporation 2001. All rights reserved.
+
+
+F:\namespace>csc namespace.cs /r:namespace1.dll
+Microsoft (R) Visual C# .NET Compiler version 7.00.9466
+for Microsoft (R) .NET Framework version 1.0.3705
+Copyright (C) Microsoft Corporation 2001. All rights reserved.
+
+namespace.cs(7,3): error CS0122: 'de.condat.csharp.Foo' is
+inaccessible due to
+        its protection level
+namespace.cs(8,3): error CS0122: 'de.condat.csharp1.Foo' is
+inaccessible due to
+
+while mcs gives:
+mcs /t:library namespace1.cs namespace2.cs
+Compilation succeeded
+
+mcs namespace.cs /r:namespace1.dll
+Compilation succeeded
+
+The problem is that the classes from the assembly namespace1.dll
+should not bevisible outside this assembly, e.g. the default
+visibility should be internal.