title: C++ Overloaded Function Error
body: <p>I'm working with JNI on a current project, and am getting a strange error from my C++ code during compilation.  I get an error stating:<br/></p>
  
  <p><strong>error: overloaded function with no contextual type information</strong><br/><br/></p>
  
  <p>This is coming from the "nativegetsupportedciphersuites" line in the following array, which is mapping java functions with their C++ counterparts.  I've cut out the other array members to make it easier to read.</p>
  
  <pre><code>static JNINativeMethod sSocketImplMethods[] =
  {
  ...
      {"nativegetsupportedciphersuites", "()[Ljava/lang/String;", (void*)&amp;Java_mypackage_SocketImpl_nativegetsupportedciphersuites},
  ...
  };
  </code></pre>
  
  <p><br/>I think it must be an error with the type declaration, but really have no clue.  The type declaration was generated by the javah function, so I assume it is correct.  The function signature of the above method is shown below:</p>
  
  <pre><code>JNIEXPORT jobjectArray JNICALL Java_mypackage_nativegetsupportedciphersuites(JNIEnv* env, jobject object)
  </code></pre>
  
  <p><br/>Any Thoughts?</p>
  
  <p>Chris</p>