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