[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Wierd stuff in SocketPermission
From: |
Gary Benson |
Subject: |
Re: Wierd stuff in SocketPermission |
Date: |
Thu, 19 Jan 2006 12:40:52 +0000 |
Tom Tromey wrote:
> >>>>> "Gary" == Gary Benson <address@hidden> writes:
>
> Gary> Does anybody know why java.net.SocketPermission's hostport
> Gary> member is declared transient?
>
> transient means that the field is not a candidate for serialization.
How can you have a meaningful serialized representation without that
essential piece?
> Gary> I'm working on a rewrite (spurred by PR 24708) that would
> Gary> replace hostport entirely but I don't want to break stuff
> Gary> inadvertantly!
>
> Go for it. In combination with 'private', 'transient' is nice
> because it means you can have a lot of confidence that removing the
> field won't break anything. In other cases you may need to do a
> little more research first...
Ok, cool.
Cheers,
Gary