hotspot/src/share/vm/classfile/systemDictionary.hpp
changeset 24337 ddce5dcb6be1
parent 24322 c2978d1578e3
parent 24334 36096f7271f4
child 24456 8c7933fa5a1f
equal deleted inserted replaced
24330:4e65b09f7101 24337:ddce5dcb6be1
   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