This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Why copy Utf8Consts?
- From: Bryce McKinlay <bryce at waitaki dot otago dot ac dot nz>
- To: java at gcc dot gnu dot org
- Date: Sun, 17 Feb 2002 21:27:31 +1300
- Subject: Why copy Utf8Consts?
Why does _Jv_NewStringUtf8Const() copy the UTF8 data when initializing a
String from a Utf8Const? Isn't a Utf8Const essentially a java string
without the object/vtable header? So why not just create a 0-length
string object and point the data field at the static Utf8Const data?
regards
Bryce.