[Mono-bugs] [Bug 60517][Wis] New - Mono allows serialization of private classes
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Mon, 21 Jun 2004 19:26:09 -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 grompf@sublimeintervention.com.
http://bugzilla.ximian.com/show_bug.cgi?id=60517
--- shadow/60517 2004-06-21 19:26:09.000000000 -0400
+++ shadow/60517.tmp.13342 2004-06-21 19:26:09.000000000 -0400
@@ -0,0 +1,39 @@
+Bug#: 60517
+Product: Mono: Class Libraries
+Version: unspecified
+OS:
+OS Details: OSX 10.3.3
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: Sys.XML
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: grompf@sublimeintervention.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Mono allows serialization of private classes
+
+Compile the code below; MS.NET throws an exception as expected; Mono beta 3 allows the code
+to run
+
+junglist:~ plasma$ vi test.cs
+
+using System;
+using System.Xml;
+using System.Xml.Serialization;
+
+class Test {
+ static void Main(string[] args) {
+ XmlSerializer s = new XmlSerializer(typeof(Foo));
+ }
+
+
+ [XmlRoot("foo")]
+ public class Foo {
+ public String bar;
+ }
+
+}