MCPcopy Create free account
hub / github.com/apple/foundationdb / toString

Method toString

bindings/java/JavaWorkload.cpp:195–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193 }
194
195 std::string toString() {
196 if (!throwable) {
197 return "JNIError";
198 } else {
199 jboolean isCopy = false;
200 jmethodID toStringM =
201 env->GetMethodID(env->FindClass("java/lang/Object"), "toString", "()Ljava/lang/String;");
202 jstring s = (jstring)env->CallObjectMethod(throwable, toStringM);
203 const char* utf = env->GetStringUTFChars(s, &isCopy);
204 std::string res(utf);
205 env->ReleaseStringUTFChars(s, utf);
206 return res;
207 }
208 }
209};
210
211struct JVM {

Callers 15

describeFunction · 0.45
Future<Void> _testFunction · 0.45
pushErrorMethod · 0.45
processInstructionMethod · 0.45
callMethod · 0.45
pathToStringFunction · 0.45
~JavaWorkloadMethod · 0.45
initMethod · 0.45
setupMethod · 0.45
startMethod · 0.45
checkMethod · 0.45

Calls

no outgoing calls

Tested by 9

pushErrorMethod · 0.36
processInstructionMethod · 0.36
callMethod · 0.36
pathToStringFunction · 0.36
indexEntryKeyFunction · 0.36
recordKeyFunction · 0.36
recordValueFunction · 0.36
getMappedIndexEntriesFunction · 0.36