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: Tom Tromey <tromey at redhat dot com>
- To: Bryce McKinlay <bryce at mckinlay dot net dot nz>
- Cc: gnustuff at thisiscool dot com, java-patches at gcc dot gnu dot org
- Date: 11 Aug 2003 12:27:21 -0600
- Subject: Re: Patch for Review: JvGetStringUTF and JvTempCString
- References: <1532F83B-CAE4-11D7-921E-003065F97F7C@mckinlay.net.nz>
- Reply-to: tromey at redhat dot com
Bryce> As for JvTempCString, do you have an example of when this is needed?
Bryce> What is wrong with, in client code, simply using JvGetStringUTF into a
Bryce> stack allocated buffer? I think it is better to keep CNI simple unless
Bryce> there is a compelling reason to have this.
I wanted it for use inside libgcj, to simplify existing code.
Also, in some cases it isn't clear that just using a stack allocated
buffer is best. It seems a little better to me to put a size limit
on this.
Tom