title: Easy way to get Number from primitive in JNI?
body: <p>I want to call a java method from C that takes an argument <code>T extends Number</code>. I know java by default does the autoboxing for these types for you, but when I try to pass a <code>float</code> or <code>jfloat</code> in the JNI call, I get the following error: </p>
  
  <pre><code>FATAL ERROR in native method: Bad JNI oop argument
  </code></pre>
  
  <p>Is there an easy way to generate a <code>Number</code> java class or pass it to a Java method argument from C using JNI without caring about the actual primitive type?</p>