Author Topic: Is there a way to get Slick to do the symbol lookup for JNI Native calls?  (Read 2053 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2619
  • Hero Points: 210
  • Text
Given code like this:

// Java code in "Blat.java"

package com.example.app;

class Blat {

    native void nativeToStuff();

}



// C++ Code in "Blat.cpp"

extern "C"

{

    JNIEXPORT void JNICALL Java_com_example_app_Blat_nativeToStuff(JNIEnv* env, jobject jthis)

}






When I'm in "Blat.java" and I try to push_tag on "nativeToStuff", I'd like Slick to be smart enough to jump to Blat.CPP.
The name of the CPP function is mangled - based on the class, return type, and parameters of the Java class where the function is declared.
(The details of this are defined in the JDK).


Is there a way to get SLick to do this?


Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: Is there a way to get Slick to do the symbol lookup for JNI Native calls?
« Reply #1 on: September 12, 2014, 01:42:53 pm »
That is a pretty good suggestion and might be workable.  I will file a request for that.

Clark

  • Moderator
  • Senior Community Member
  • *
  • Posts: 6488
  • Hero Points: 507
Re: Is there a way to get Slick to do the symbol lookup for JNI Native calls?
« Reply #2 on: September 12, 2014, 07:27:45 pm »
That would be cool! Sounds doable doable too.