title: Call method thru JNI with char[] parameter
body: <p>I'm trying to call a Java method from my native code, but it fails. I cannot call the method with a const string (i.e. "string" as a parameter nor by the following way.
  If I remove the char[] parameter from the method and call it from the native only with the int parameter it's work. So the problem is the char[] parameter.</p>
  
  <p>I have the Java class Stats:</p>
  
  <pre><code>public class Stats {
  
      HashMap&lt;String, Integer&gt; mStats;
  
      public Stats() {
          mStats = new HashMap&lt;String, Integer&gt;();
      }
  
      public void put(char[] key, int value) {
          mStats.put(new String(key), value);
      }
  
  }
  </code></pre>
  
  <p>And a native function </p>
  
  <pre><code>void Java_com_..._testObject(JNIEnv* env, jobject javaThis,
          jobject jStatsObj) {
      jclass jstatistics_class = env-&gt;GetObjectClass(jStatsObj);
      jmethodID jput_method = env-&gt;GetMethodID(jstatistics_class, "put", "(C[I)V");
      char s[]={"hello"};
      env-&gt;CallIntMethod(jStatsObj, jput_method, s, 3);
  }
  </code></pre>