8007153: Ensure that MethodParameters API works properly with RedefineClasses

Adds code to HotSpot to properly update MethodParameter attributes' constant pool indexes when redefineClasses is called

Reviewed-by: coleenp, sspitsyn
This commit is contained in:
Eric McCorkle 2013-02-19 11:36:52 -05:00
parent 1439d121c2
commit b56b3bc9aa
2 changed files with 14 additions and 0 deletions

View file

@ -456,6 +456,8 @@ class Method : public Metadata {
void print_codes_on(int from, int to, outputStream* st) const PRODUCT_RETURN;
// method parameters
bool has_method_parameters() const
{ return constMethod()->has_method_parameters(); }
int method_parameters_length() const
{ return constMethod()->method_parameters_length(); }
MethodParametersElement* method_parameters_start() const