1
0
forked from GitHub/gf-core

bugfix in the Java binding

This commit is contained in:
kr.angelov
2014-04-10 16:43:40 +00:00
parent 4008a2b111
commit dbc8a6f579

View File

@@ -680,7 +680,9 @@ jpgf_literal_callback_fn(PgfLiteralCallback* self,
jstring jsentence = gu2j_string(env, sentence);
jobject result = (*env)->CallObjectMethod(env, callback->jcallback, callback->match_methodId, lin_idx, jsentence, *poffset);
if (result == NULL)
return NULL;
jclass result_class = (*env)->GetObjectClass(env, result);
jfieldID epId = (*env)->GetFieldID(env, result_class, "ep", "Lorg/grammaticalframework/pgf/ExprProb;");