Workaround for javah bug
Change-Id: I6878d2d17eafe46996d5f40f96fe9d4a423f5e03
diff --git a/src/main/cpp/edu_stanford_ramcloud_JRamCloud.cc b/src/main/cpp/edu_stanford_ramcloud_JRamCloud.cc
index fc93cb4..f8d6db6 100755
--- a/src/main/cpp/edu_stanford_ramcloud_JRamCloud.cc
+++ b/src/main/cpp/edu_stanford_ramcloud_JRamCloud.cc
@@ -455,13 +455,25 @@
return static_cast<jlong>(version);
}
+
+// Workaround for javah generating incorrect signature for inner class
+// 00024 is an escaped signature for $ character
+#ifdef __cplusplus
+extern "C" {
+#endif
+JNIEXPORT jlong JNICALL Java_edu_stanford_ramcloud_JRamCloud_remove__J_3BLedu_stanford_ramcloud_JRamCloud_00024RejectRules_2
+ (JNIEnv *, jobject, jlong, jbyteArray, jobject);
+#ifdef __cplusplus
+}
+#endif
+
/*
* Class: edu_stanford_ramcloud_JRamCloud
* Method: remove
- * Signature: (J[BLJRamCloud/RejectRules;)J
+ * Signature: (J[BLedu/stanford/ramcloud/JRamCloud/$RejectRules;)J
*/
JNIEXPORT jlong
-JNICALL Java_edu_stanford_ramcloud_JRamCloud_remove__J_3BLJRamCloud_RejectRules_2(JNIEnv *env,
+JNICALL Java_edu_stanford_ramcloud_JRamCloud_remove__J_3BLedu_stanford_ramcloud_JRamCloud_00024RejectRules_2(JNIEnv *env,
jobject jRamCloud,
jlong jTableId,
jbyteArray jKey,