420 |
420 |
421 // Check whether reflection/jni/jvm code is allowed to instantiate this class; |
421 // Check whether reflection/jni/jvm code is allowed to instantiate this class; |
422 // if not, throw either an Error or an Exception. |
422 // if not, throw either an Error or an Exception. |
423 virtual void check_valid_for_instantiation(bool throwError, TRAPS); |
423 virtual void check_valid_for_instantiation(bool throwError, TRAPS); |
424 |
424 |
425 // Casting |
|
426 static Klass* cast(Klass* k) { |
|
427 assert(k->is_klass(), "cast to Klass"); |
|
428 return k; |
|
429 } |
|
430 |
|
431 // array copying |
425 // array copying |
432 virtual void copy_array(arrayOop s, int src_pos, arrayOop d, int dst_pos, int length, TRAPS); |
426 virtual void copy_array(arrayOop s, int src_pos, arrayOop d, int dst_pos, int length, TRAPS); |
433 |
427 |
434 // tells if the class should be initialized |
428 // tells if the class should be initialized |
435 virtual bool should_be_initialized() const { return false; } |
429 virtual bool should_be_initialized() const { return false; } |