public static String mangleNativeMethod(String owner,String name,String desc){
  StringBuilder sb=new StringBuilder();
  sb.append("Java_");
  sb.append(mangleNativeString(owner));
  sb.append("_");
  sb.append(mangleNativeString(name));
  if (desc != null) {
    sb.append("__");
    sb.append(mangleNativeString(desc.substring(1,desc.lastIndexOf(')'))));
  }
  return sb.toString();
}

public static String mangleNativeMethod ( String owner , String name , String desc ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( "Java_" ) ; sb . append ( mangleNativeString ( owner ) ) ; sb . append ( "_" ) ; sb . append ( mangleNativeString ( name ) ) ; if ( desc != null ) { sb . append ( "__" ) ; sb . append ( mangleNativeString ( desc . substring ( 1 , desc . lastIndexOf ( ')' ) ) ) ) ; } return sb . toString ( ) ; }
returns the long version of the jni function name for a method .
