Mercurial > hg > truffle
diff src/share/vm/ci/ciType.cpp @ 7604:f1de9dbc914e
8006109: test/java/util/AbstractSequentialList/AddAll.java fails: assert(rtype == ctype) failed: mismatched return types
Reviewed-by: kvn
author | twisti |
---|---|
date | Tue, 15 Jan 2013 12:06:18 -0800 |
parents | 070d523b96a7 |
children | de6a9e811145 |
line wrap: on
line diff
--- a/src/share/vm/ci/ciType.cpp Mon Jan 14 08:22:32 2013 -0800 +++ b/src/share/vm/ci/ciType.cpp Tue Jan 15 12:06:18 2013 -0800 @@ -60,6 +60,19 @@ } // ------------------------------------------------------------------ +// ciType::name +// +// Return the name of this type +const char* ciType::name() { + if (is_primitive_type()) { + return type2name(basic_type()); + } else { + assert(is_klass(), "must be"); + return as_klass()->name()->as_utf8(); + } +} + +// ------------------------------------------------------------------ // ciType::print_impl // // Implementation of the print method. @@ -73,7 +86,8 @@ // // Print the name of this type void ciType::print_name_on(outputStream* st) { - st->print(type2name(basic_type())); + ResourceMark rm; + st->print(name()); }