This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch for Review: JvGetStringUTF and JvTempCString
- From: Mohan Embar <gnustuff at thisiscool dot com>
- To: Bryce McKinlay <bryce at mckinlay dot net dot nz>, tromey at redhat dot com
- Cc: java-patches at gcc dot gnu dot org
- Date: Tue, 12 Aug 2003 10:01:04 -0500
- Subject: Re: Patch for Review: JvGetStringUTF and JvTempCString
- Reply-to: gnustuff at thisiscool dot com
Hi People,
>Bryce> Do you really think its common to create a File object and not
>Bryce> use it? It would make the code cleaner to not have to worry
>Bryce> about lazy-initialization cases.
>
>Honestly I don't know how common it is. I've seen code that creates
>Files just to turn them into URLs. Sometimes it goes back and forth
>like this a few times. (Eclipse startup does some of this.)
Lazy initialization would probably require unnecessary synchronization
within java.io.File, which is supposed to act as if it is immutable.
-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/