https://bugzilla.novell.com/show_bug.cgi?id=340799
Summary: Missing enum validation
Product: Moonlight
Version: unspecified
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: engine
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]
QAContact: [EMAIL PROTECTED]
Found By: ---
Silverlight validates the enum values on it's object properties, both directly
and indirectly (via SetValue). Invalid values throws a System.Exception saying
"Catastrophic error..."
Moonlight doesn't validate the enum values.
E.g.
Ellipse el = new Ellipse ();
try {
el.StrokeStartLineCap = (PenLineCap) (-1);
Console.WriteLine ("el.StrokeStartLineCap = (PenLineCap) (-1);");
}
catch (Exception ex) {
Console.WriteLine (ex.ToString ());
}
try {
el.SetValue (Ellipse.StrokeStartLineCapProperty, (PenLineCap) (-1));
Console.WriteLine ("el.SetValue (Ellipse.StrokeStartLineCapProperty,
(PenLineCap) (-1));");
}
catch (Exception ex) {
Console.WriteLine (ex.ToString ());
}
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
_______________________________________________
mono-bugs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs