>>>>> "Patrick" == Patrick Doyle <[EMAIL PROTECTED]> writes:

Patrick> What is the best way for a JVM to instantiate a String for a
Patrick> constant pool entry of type "CONSTANT_String"?

Use the JNI `NewString' call.  It takes a nul-terminated UTF-8 encoded
`char *' and returns a jstring.  The termination will probably be a
problem for you :-(

Or maybe you mean you want to implement this call.  In that case your
plan of using String(char[]) sounds as good as any.

Tom

_______________________________________________
Classpath mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/classpath

Reply via email to