7178703: Fix handling of quoted arguments and better error messages in dcmd

Reviewed-by: coleenp, mgronlun, rbackman
This commit is contained in:
Staffan Larsen 2012-06-28 11:37:28 +02:00
parent 559278381b
commit 39dfe6d047
5 changed files with 77 additions and 13 deletions

View file

@ -113,6 +113,9 @@ const char* WhiteBox::lookup_jstring(const char* field_name, oop object) {
int offset = offset_for_field(field_name, object,
vmSymbols::string_signature());
oop string = object->obj_field(offset);
if (string == NULL) {
return NULL;
}
const char* ret = java_lang_String::as_utf8_string(string);
return ret;
}