[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: question about serialization
From: |
Tom Tromey |
Subject: |
Re: question about serialization |
Date: |
05 Aug 2003 12:50:43 -0600 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
>>>>> "Ingo" == Ingo Prötel <address@hidden> writes:
Ingo> would like to propose a modification to Toms fix. It looks to me as if
Ingo> all fields of a deserialized object are accessible as well as the
Ingo> private readObject-Method. Or does the VM reset the Accessible flag?
No, nothing resets the flag.
I assume you are doing this because your Class implementation caches
the Field and Method objects. I don't think that is valid. If we
call setAccessible on a Method, then even if we reset it we are
opening up a window where other unprivileged code could access that
Method. This can only happen in the serialization code if Class
returns the same Method or Field object to other callers.
Tom
- Re: question about serialization, David P Grove, 2003/08/03
- Re: question about serialization, Tom Tromey, 2003/08/02
- Re: question about serialization, Bryce McKinlay, 2003/08/04
- Re: question about serialization, Chris Gray, 2003/08/04
- Re: question about serialization, Bryce McKinlay, 2003/08/04
- Re: question about serialization, Chris Gray, 2003/08/04
- Re: question about serialization, Bryce McKinlay, 2003/08/04
- Re: question about serialization, Tom Tromey, 2003/08/04
- Re: question about serialization, Ingo Prötel, 2003/08/05
- Re: question about serialization,
Tom Tromey <=
- Re: question about serialization, Mark Wielaard, 2003/08/05
- Re: question about serialization, Chris Gray, 2003/08/05