harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jimmy,Jing Lv" <firep...@gmail.com>
Subject Re: [luni] ObjectInputStream.java
Date Wed, 11 Aug 2010 08:21:44 GMT
Hi Matthias,

     I suppose ObjectInputStream is mainly use to serialize Object but void
is not a kind of Class to be serialized. Please tell me if I am wrong.

2010/8/10 Mark Hindess <mark.hindess@googlemail.com>

>
> In message <AANLkTinN_KKS+RkLZfXup2tGHBAoR-9FVB8om3MCi9u=@mail.gmail.com>,
> Matthias Wessendorf writes:
> >
> > Hello,
> >
> > looking at ObjectInputStream.java,
> >
> >     static {
> >         PRIMITIVE_CLASSES.put("byte", byte.class); //$NON-NLS-1$
> >         PRIMITIVE_CLASSES.put("short", short.class); //$NON-NLS-1$
> >         PRIMITIVE_CLASSES.put("int", int.class); //$NON-NLS-1$
> >         PRIMITIVE_CLASSES.put("long", long.class); //$NON-NLS-1$
> >         PRIMITIVE_CLASSES.put("boolean", boolean.class); //$NON-NLS-1$
> >         PRIMITIVE_CLASSES.put("char", char.class); //$NON-NLS-1$
> >         PRIMITIVE_CLASSES.put("float", float.class); //$NON-NLS-1$
> >         PRIMITIVE_CLASSES.put("double", double.class); //$NON-NLS-1$
> >     }
> >
> > I am wondering why there is no "void", void.class key-value pair?
>
> I see you've raised a JIRA bug for this.  I'm struggling to understand
> in what context this would be needed.  Can you provide a test case that
> shows why it is needed?
>
> Regards,
>  Mark.
>
>
>


-- 

Best Regards!

Jimmy, Jing Lv

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message