[Mono-bugs] [Bug 378696] XmlSerializer: Error while compiling generated serializer

2008-06-05 Thread bugzilla_noreply
https://bugzilla.novell.com/show_bug.cgi?id=378696

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=378696#c6


Atsushi Enomoto <[EMAIL PROTECTED]> changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Comment #6 from Atsushi Enomoto <[EMAIL PROTECTED]>  2008-06-05 05:34:07 
MDT ---
Fixed in svn (r104983). Literal DefaultValue value cannot be removed in some
places, so I introduced a true fix for literal value.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 378696] XmlSerializer: Error while compiling generated serializer

2008-04-10 Thread bugzilla_noreply
https://bugzilla.novell.com/show_bug.cgi?id=378696

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=378696#c5





--- Comment #5 from David Brazier <[EMAIL PROTECTED]>  2008-04-10 07:51:30 MST 
---
Would I be right in thinking that my options for a workaround are:
1. Remove DateTime for DefaultValue, or
2. Use MONO_XMLSERIALIZER_THS=no to force the interpreter instead of compiler.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 378696] XmlSerializer: Error while compiling generated serializer

2008-04-10 Thread bugzilla_noreply
https://bugzilla.novell.com/show_bug.cgi?id=378696

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=378696#c4





--- Comment #4 from David Brazier <[EMAIL PROTECTED]>  2008-04-10 07:24:29 MST 
---
See attached test program & XmlSerializer output, produced with the environment
variables set as advised.  Problem is evidently with a DefaultValue of DateTime
type:

[EMAIL PROTECTED] = 02/03/2001 04:05:06;

The constant value is output by SerializationCodeGenerator.GetLiteral, which
doesn't have a special case for DateTime, so drops through to
IFormattable.ToString.  Maybe this should use IConvertible and Convert instead?

As an aside, I ran the program with the MS runtime and got the output:


http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
  0001-01-01T00:00:00
  0001-01-01T00:00:00

-
01/01/0001 00:00:00
01/01/0001 00:00:00

The serialisation is as expected, becuase I didn't actually initialise the
FancyDateTime memeber to the same as the DefaultValue, but the deserialisation
isn't what I expected - it didn't respect the DefaultValue.  Or perhaps I am
misunderstanding how DefaultValue is supposed to work.  This isn't your problem
though!


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 378696] XmlSerializer: Error while compiling generated serializer

2008-04-10 Thread bugzilla_noreply
https://bugzilla.novell.com/show_bug.cgi?id=378696

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=378696#c3





--- Comment #3 from David Brazier <[EMAIL PROTECTED]>  2008-04-10 07:04:46 MST 
---
Created an attachment (id=207222)
 --> (https://bugzilla.novell.com/attachment.cgi?id=207222)
XmlSerializer output


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 378696] XmlSerializer: Error while compiling generated serializer

2008-04-10 Thread bugzilla_noreply
https://bugzilla.novell.com/show_bug.cgi?id=378696

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=378696#c2





--- Comment #2 from David Brazier <[EMAIL PROTECTED]>  2008-04-10 07:03:24 MST 
---
Created an attachment (id=207221)
 --> (https://bugzilla.novell.com/attachment.cgi?id=207221)
Test program


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 378696] XmlSerializer: Error while compiling generated serializer

2008-04-10 Thread bugzilla_noreply
https://bugzilla.novell.com/show_bug.cgi?id=378696

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=378696#c1





--- Comment #1 from Atsushi Enomoto <[EMAIL PROTECTED]>  2008-04-10 05:09:24 
MST ---
set environment variables MONO_XMLSERIALIZER_THS=0,nofallback
MONO_XMLSERIALIZER_DEBUG=1 and run xsp, mod_mono or whatever rou run. (For
details man mono.)


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs