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