Permalink
Browse files

Added android.jar to classpath. Added String as a primitive (JNI) type.

  • Loading branch information...
1 parent 93fefe2 commit 769fe68ff749a124a7549579d8626f77f5715704 Nicolas Gramlich committed Mar 27, 2012
View
@@ -6,5 +6,6 @@
<classpathentry kind="lib" path="lib/jalopy.jar"/>
<classpathentry kind="lib" path="lib/log4j.jar"/>
<classpathentry kind="lib" path="lib/paranamer-2.3.jar" sourcepath="lib/paranamer-2.3-sources.jar"/>
+ <classpathentry kind="lib" path="lib/android.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
View
Binary file not shown.
@@ -347,6 +347,8 @@ public static String getGenCppParameterTypeName(final Class<?> pParameterType, f
return "jfloatArray";
} else if(componentType == Double.TYPE) {
return "jdoubleArray";
+ } else if(componentType == String.class) {
+ return "jstringArray";
} else if(componentType == Object.class) {
return "jobjectArray";
} else {
@@ -371,6 +373,8 @@ public static String getGenCppParameterTypeName(final Class<?> pParameterType, f
return "jfloat";
} else if(pParameterType == Double.TYPE) {
return "jdouble";
+ } else if(pParameterType == String.class) {
+ return "jstring";
} else if(pParameterType == Object.class) {
return "jobject";
} else {
@@ -403,6 +407,8 @@ public static boolean isPrimitiveType(final Class<?> pType) {
return true;
} else if(pType == Double.TYPE) {
return true;
+ } else if(pType == String.class) {
+ return true;
} else if(pType == Object.class) {
return true;
} else {

0 comments on commit 769fe68

Please sign in to comment.