Mercurial > hg > truffle
diff src/share/vm/oops/klass.cpp @ 1042:4926bf2d292f
Merge
author | cfang |
---|---|
date | Thu, 29 Oct 2009 08:49:31 -0700 |
parents | 987e948ebbc8 |
children | 4ce7240d622c |
line wrap: on
line diff
--- a/src/share/vm/oops/klass.cpp Wed Oct 28 10:37:17 2009 -0700 +++ b/src/share/vm/oops/klass.cpp Thu Oct 29 08:49:31 2009 -0700 @@ -496,11 +496,13 @@ return result; } } + if (name() == NULL) return "<unknown>"; return name()->as_klass_external_name(); } -char* Klass::signature_name() const { +const char* Klass::signature_name() const { + if (name() == NULL) return "<unknown>"; return name()->as_C_string(); }