Return java.lang.Object using SWIG %native function
I'm declaring an inline native JNI function, getId.  I'm unsure of how to tell SWIG, in the %native snippet below, how to just return a java.lang.Object.  I have TBD there for now.  I believe a typemap is the proper approach, but I'm unsure of how to declare it for a native JNI method using the %native function.  Any ideas? 

    %module Sample
    %{
    JNIEXPORT jobject JNICALL Java_com_test_SampleJNI_getID(JNIEnv *env, jclass cls) 
    {
        //code here to find a class and populate it and return it
    }
    %}
    %native(getID) TBD getID();
Return java.lang.Object using SWIG %native function
===

I'm declaring an inline native JNI function, getId.  I'm unsure of how to tell SWIG, in the %native snippet below, how to just return a java.lang.Object.  I have TBD there for now.  I believe a typemap is the proper approach, but I'm unsure of how to declare it for a native JNI method using the %native function.  Any ideas? 

    %module Sample
    %{
    JNIEXPORT jobject JNICALL Java_com_test_SampleJNI_getID(JNIEnv *env, jclass cls) 
    {
        //code here to find a class and populate it and return it
    }
    %}
    %native(getID) TBD getID();