1.1 --- a/src/share/vm/oops/methodOop.hpp Tue Jun 12 16:23:31 2012 -0700 1.2 +++ b/src/share/vm/oops/methodOop.hpp Wed Jun 13 11:36:03 2012 -0700 1.3 @@ -198,8 +198,8 @@ 1.4 // C string, for the purpose of providing more useful NoSuchMethodErrors 1.5 // and fatal error handling. The string is allocated in resource 1.6 // area if a buffer is not provided by the caller. 1.7 - char* name_and_sig_as_C_string(); 1.8 - char* name_and_sig_as_C_string(char* buf, int size); 1.9 + char* name_and_sig_as_C_string() const; 1.10 + char* name_and_sig_as_C_string(char* buf, int size) const; 1.11 1.12 // Static routine in the situations we don't have a methodOop 1.13 static char* name_and_sig_as_C_string(Klass* klass, Symbol* method_name, Symbol* signature);