src/hotspot/share/runtime/reflection.cpp
changeset 58273 08a5148e7c4e
parent 54847 59ea39bb2809
child 59056 15936b142f86
equal deleted inserted replaced
58272:e27564cd10e3 58273:08a5148e7c4e
    90 
    90 
    91 oop Reflection::box(jvalue* value, BasicType type, TRAPS) {
    91 oop Reflection::box(jvalue* value, BasicType type, TRAPS) {
    92   if (type == T_VOID) {
    92   if (type == T_VOID) {
    93     return NULL;
    93     return NULL;
    94   }
    94   }
    95   if (type == T_OBJECT || type == T_ARRAY) {
    95   if (is_reference_type(type)) {
    96     // regular objects are not boxed
    96     // regular objects are not boxed
    97     return (oop) value->l;
    97     return (oop) value->l;
    98   }
    98   }
    99   oop result = java_lang_boxing_object::create(type, value, CHECK_NULL);
    99   oop result = java_lang_boxing_object::create(type, value, CHECK_NULL);
   100   if (result == NULL) {
   100   if (result == NULL) {
   754 static oop get_mirror_from_signature(const methodHandle& method,
   754 static oop get_mirror_from_signature(const methodHandle& method,
   755                                      SignatureStream* ss,
   755                                      SignatureStream* ss,
   756                                      TRAPS) {
   756                                      TRAPS) {
   757 
   757 
   758 
   758 
   759   if (T_OBJECT == ss->type() || T_ARRAY == ss->type()) {
   759   if (is_reference_type(ss->type())) {
   760     Symbol* name = ss->as_symbol();
   760     Symbol* name = ss->as_symbol();
   761     oop loader = method->method_holder()->class_loader();
   761     oop loader = method->method_holder()->class_loader();
   762     oop protection_domain = method->method_holder()->protection_domain();
   762     oop protection_domain = method->method_holder()->protection_domain();
   763     const Klass* k = SystemDictionary::resolve_or_fail(name,
   763     const Klass* k = SystemDictionary::resolve_or_fail(name,
   764                                                        Handle(THREAD, loader),
   764                                                        Handle(THREAD, loader),