194 |
194 |
195 // Helper routine: get klass name + "." + method name + signature as |
195 // Helper routine: get klass name + "." + method name + signature as |
196 // C string, for the purpose of providing more useful NoSuchMethodErrors |
196 // C string, for the purpose of providing more useful NoSuchMethodErrors |
197 // and fatal error handling. The string is allocated in resource |
197 // and fatal error handling. The string is allocated in resource |
198 // area if a buffer is not provided by the caller. |
198 // area if a buffer is not provided by the caller. |
199 char* name_and_sig_as_C_string(); |
199 char* name_and_sig_as_C_string() const; |
200 char* name_and_sig_as_C_string(char* buf, int size); |
200 char* name_and_sig_as_C_string(char* buf, int size) const; |
201 |
201 |
202 // Static routine in the situations we don't have a methodOop |
202 // Static routine in the situations we don't have a methodOop |
203 static char* name_and_sig_as_C_string(Klass* klass, Symbol* method_name, Symbol* signature); |
203 static char* name_and_sig_as_C_string(Klass* klass, Symbol* method_name, Symbol* signature); |
204 static char* name_and_sig_as_C_string(Klass* klass, Symbol* method_name, Symbol* signature, char* buf, int size); |
204 static char* name_and_sig_as_C_string(Klass* klass, Symbol* method_name, Symbol* signature, char* buf, int size); |
205 |
205 |