< prev index next >
src/hotspot/share/runtime/signature.cpp
Print this page
rev 52849 : [mq]: q-mirror-reflection
@@ -29,10 +29,11 @@
#include "memory/resourceArea.hpp"
#include "oops/instanceKlass.hpp"
#include "oops/oop.inline.hpp"
#include "oops/symbol.hpp"
#include "oops/typeArrayKlass.hpp"
+#include "oops/valueKlass.hpp"
#include "runtime/signature.hpp"
// Implementation of SignatureIterator
// Signature syntax:
@@ -401,11 +402,11 @@
FailureMode failure_mode, TRAPS) {
if (!is_object())
return Universe::java_mirror(type());
Klass* klass = as_klass(class_loader, protection_domain, failure_mode, CHECK_NULL);
if (klass == NULL) return NULL;
- return klass->java_mirror();
+ return _type == T_VALUETYPE ? ValueKlass::cast(InstanceKlass::cast(klass))->value_mirror() : klass->java_mirror();
}
Symbol* SignatureStream::as_symbol_or_null() {
// Create a symbol from for string _begin _end
ResourceMark rm;
< prev index next >