--- old/src/share/vm/oops/constMethod.hpp 2014-11-06 13:33:13.989745611 -0500 +++ new/src/share/vm/oops/constMethod.hpp 2014-11-06 13:33:13.923745114 -0500 @@ -214,7 +214,7 @@ // but this may change with redefinition u2 _max_stack; // Maximum number of entries on the expression stack u2 _max_locals; // Number of local variables used by this method - u2 _size_of_parameters; // size of the parameter block (receiver + arguments) in words + u2 _size_of_parameters; // size of the parameter block (receiver + arguments) in words // Constructor ConstMethod(int byte_code_size, @@ -372,6 +372,11 @@ ExceptionTableElement* exception_table_start() const; // method parameters table + + // This returns -1 if no parameters are present, a non-negative + // value otherwise. Note: sometimes, there are 0-length parameters + // attributes that must be reported up to the reflection API all the + // same. int method_parameters_length() const; MethodParametersElement* method_parameters_start() const;