I assume that you are talking about XML serialization of java.lang.Double.
As you pointed out, it cannot be Xml serialized.
However, can I please know the exact scenario where you want to do this?
Currently, the only lame workaround that I can think of is to serialize the
underlying primitive double which will work.
Thanks
Sadagopan Rajaram
Microsoft Visual J# .NET Product Team.
This posting is provided "AS IS" with no warranties, and confers no
rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm --------------------
[quoted text, click to view] >Thread-Topic: Serialization of double in J#
>thread-index: AcQ5sLiw19+Th1avRoyKPdEYbrktVg==
>X-WN-Post: microsoft.public.dotnet.vjsharp
>From: =?Utf-8?B?VmluYXkgQ2hvcHJh?= <anonymous@discussions.microsoft.com>
>Subject: Serialization of double in J#
>Date: Fri, 14 May 2004 05:41:04 -0700
>Lines: 7
>Message-ID: <7B605569-9553-4542-9BAD-7028B8107DEE@microsoft.com>
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset="Utf-8"
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Microsoft CDO for Windows 2000
>Content-Class: urn:content-classes:message
>Importance: normal
>Priority: normal
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
>Newsgroups: microsoft.public.dotnet.vjsharp
>Path: cpmsftngxa10.phx.gbl
>Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.vjsharp:6047
>NNTP-Posting-Host: tk2msftcmty1.phx.gbl 10.40.1.180
>X-Tomcat-NG: microsoft.public.dotnet.vjsharp
>
>Hi,
java.lang.Double cannot be serialized because it does not have a default
public constructor.
What can I do to serialized it.
Thanks.
[quoted text, click to view] >