pike.git / src / modules / Java / jvm.c

version» Context lines:

pike.git/src/modules/Java/jvm.c:550:    struct method_storage *m=THIS_METHOD;    struct jobj_storage *c;    struct object *class;    struct pike_string *name, *sig;    JNIEnv *env;    char *p;       get_all_args(NULL, args, "%S%S%o", &name, &sig, &class);       if((c = get_storage(class, jclass_program)) == NULL) -  SIMPLE_TYPE_ARG_ERROR("create", 3, "Java class"); +  SIMPLE_ARG_TYPE_ERROR("create", 3, "Java class");       if((env = jvm_procure_env(c->jvm))==NULL) {    destruct(Pike_fp->current_object);    return;    }       m->method = (Pike_fp->current_object->prog==static_method_program?    (*env)->GetStaticMethodID(env, c->jobj, name->str, sig->str):    (*env)->GetMethodID(env, c->jobj, name->str, sig->str));