equal
deleted
inserted
replaced
226 static Klass* resolve_or_fail(Symbol* class_name, Handle class_loader, Handle protection_domain, bool throw_error, TRAPS); |
226 static Klass* resolve_or_fail(Symbol* class_name, Handle class_loader, Handle protection_domain, bool throw_error, TRAPS); |
227 // Convenient call for null loader and protection domain. |
227 // Convenient call for null loader and protection domain. |
228 static Klass* resolve_or_fail(Symbol* class_name, bool throw_error, TRAPS); |
228 static Klass* resolve_or_fail(Symbol* class_name, bool throw_error, TRAPS); |
229 private: |
229 private: |
230 // handle error translation for resolve_or_null results |
230 // handle error translation for resolve_or_null results |
231 static Klass* handle_resolution_exception(Symbol* class_name, Handle class_loader, Handle protection_domain, bool throw_error, KlassHandle klass_h, TRAPS); |
231 static Klass* handle_resolution_exception(Symbol* class_name, bool throw_error, KlassHandle klass_h, TRAPS); |
232 |
232 |
233 public: |
233 public: |
234 |
234 |
235 // Returns a class with a given class name and class loader. |
235 // Returns a class with a given class name and class loader. |
236 // Loads the class if needed. If not found NULL is returned. |
236 // Loads the class if needed. If not found NULL is returned. |
529 InstanceKlass::cast((loader_data->class_loader())->klass())->name()->as_C_string() ); |
529 InstanceKlass::cast((loader_data->class_loader())->klass())->name()->as_C_string() ); |
530 } |
530 } |
531 |
531 |
532 // Record the error when the first attempt to resolve a reference from a constant |
532 // Record the error when the first attempt to resolve a reference from a constant |
533 // pool entry to a class fails. |
533 // pool entry to a class fails. |
534 static void add_resolution_error(constantPoolHandle pool, int which, Symbol* error); |
534 static void add_resolution_error(constantPoolHandle pool, int which, Symbol* error, |
|
535 Symbol* message); |
535 static void delete_resolution_error(ConstantPool* pool); |
536 static void delete_resolution_error(ConstantPool* pool); |
536 static Symbol* find_resolution_error(constantPoolHandle pool, int which); |
537 static Symbol* find_resolution_error(constantPoolHandle pool, int which, |
|
538 Symbol** message); |
537 |
539 |
538 private: |
540 private: |
539 |
541 |
540 enum Constants { |
542 enum Constants { |
541 _loader_constraint_size = 107, // number of entries in constraint table |
543 _loader_constraint_size = 107, // number of entries in constraint table |