#ifndef __JniHelpersCommon_h__
#define __JniHelpersCommon_h__

// Disable some annoying compiler warnings
#if WIN32
#pragma warning(disable: 4996) // "Security" warnings for vsnprintf
#endif

#if WIN32
#define EXPORT __declspec(dllexport)
#else
#define EXPORT
#endif

#include <jni.h>

#define kTypeInt "I"
#define kTypeLong "J"
#define kTypeFloat "F"
#define kTypeDouble "D"
#define kTypeBool "Z"
#define kTypeByte "B"
#define kTypeVoid "V"

// Common Java classes
#define kTypeJavaClass(x) "Ljava/lang/" #x ";"
#define kTypeJavaException "Ljava/lang/Exception;"
#define kTypeJavaString "Ljava/lang/String;"

// Array builder macro
#define kTypeArray(x) "[" x

#endif // __JniHelpersCommon_h__

#ifndef __JniHelpersCommon_h__
#define __JniHelpersCommon_h__

// Disable some annoying compiler warnings
#if WIN32
#pragma warning(disable: 4996) // "Security" warnings for vsnprintf
#endif

#if WIN32
#define EXPORT __declspec(dllexport)
#else
#define EXPORT
#endif

#include <jni.h>

#define kTypeInt "I"
#define kTypeLong "J"
#define kTypeFloat "F"
#define kTypeDouble "D"
#define kTypeBool "Z"
#define kTypeByte "B"
#define kTypeVoid "V"

// Common Java classes
#define kTypeJavaClass(x) "Ljava/lang/" #x ";"
#define kTypeJavaException "L/java/lang/Exception"
#define kTypeJavaString "Ljava/lang/String"

// Array builder macro
#define kTypeArray(x) "[" x

#endif // __JniHelpersCommon_h__

--- 
+++ 
@@ -24,8 +24,8 @@
 
 // Common Java classes
 #define kTypeJavaClass(x) "Ljava/lang/" #x ";"
-#define kTypeJavaException "L/java/lang/Exception"
-#define kTypeJavaString "Ljava/lang/String"
+#define kTypeJavaException "Ljava/lang/Exception;"
+#define kTypeJavaString "Ljava/lang/String;"
 
 // Array builder macro
 #define kTypeArray(x) "[" x
Fix type signatures for some java bulit-ins
