equal
deleted
inserted
replaced
415 loader = Handle(THREAD, k->class_loader()); |
415 loader = Handle(THREAD, k->class_loader()); |
416 } |
416 } |
417 } |
417 } |
418 |
418 |
419 TempNewSymbol sym = SymbolTable::new_symbol(name); |
419 TempNewSymbol sym = SymbolTable::new_symbol(name); |
420 result = find_class_from_class_loader(env, sym, true, loader, |
420 result = find_class_from_class_loader(env, sym, true, true, loader, |
421 protection_domain, true, thread); |
421 protection_domain, true, thread); |
422 |
422 |
423 if (log_is_enabled(Debug, class, resolve) && result != NULL) { |
423 if (log_is_enabled(Debug, class, resolve) && result != NULL) { |
424 trace_class_resolution(java_lang_Class::as_Klass(JNIHandles::resolve_non_null(result))); |
424 trace_class_resolution(java_lang_Class::as_Klass(JNIHandles::resolve_non_null(result))); |
425 } |
425 } |
3287 static jclass lookupOne(JNIEnv* env, const char* name, TRAPS) { |
3287 static jclass lookupOne(JNIEnv* env, const char* name, TRAPS) { |
3288 Handle loader; // null (bootstrap) loader |
3288 Handle loader; // null (bootstrap) loader |
3289 Handle protection_domain; // null protection domain |
3289 Handle protection_domain; // null protection domain |
3290 |
3290 |
3291 TempNewSymbol sym = SymbolTable::new_symbol(name); |
3291 TempNewSymbol sym = SymbolTable::new_symbol(name); |
3292 jclass result = find_class_from_class_loader(env, sym, true, loader, protection_domain, true, CHECK_NULL); |
3292 jclass result = find_class_from_class_loader(env, sym, true, true, loader, protection_domain, true, CHECK_NULL); |
3293 |
3293 |
3294 if (log_is_enabled(Debug, class, resolve) && result != NULL) { |
3294 if (log_is_enabled(Debug, class, resolve) && result != NULL) { |
3295 trace_class_resolution(java_lang_Class::as_Klass(JNIHandles::resolve_non_null(result))); |
3295 trace_class_resolution(java_lang_Class::as_Klass(JNIHandles::resolve_non_null(result))); |
3296 } |
3296 } |
3297 return result; |
3297 return result; |