mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-11-04 19:25:27 -07:00
bugfix in the java binding
This commit is contained in:
1 parent
e274cce213
commit
e3c5882721
3 files changed
+4
-4
No files matched your search
@@ -220,8 +220,8 @@ Java_org_grammaticalframework_pgf_Parser_parse
|
|||||||
}
|
}
|
||||||
|
|
||||||
jclass expiter_class = (*env)->FindClass(env, "org/grammaticalframework/pgf/ExprIterator");
|
jclass expiter_class = (*env)->FindClass(env, "org/grammaticalframework/pgf/ExprIterator");
|
||||||
jmethodID constrId = (*env)->GetMethodID(env, expiter_class, "<init>", "(JJJ)V");
|
jmethodID constrId = (*env)->GetMethodID(env, expiter_class, "<init>", "(Lorg/grammaticalframework/pgf/Concr;JJJ)V");
|
||||||
jobject jexpiter = (*env)->NewObject(env, expiter_class, constrId, (jlong) pool, (jlong) out_pool, (jlong) res);
|
jobject jexpiter = (*env)->NewObject(env, expiter_class, constrId, concr, (jlong) pool, (jlong) out_pool, (jlong) res);
|
||||||
|
|
||||||
return jexpiter;
|
return jexpiter;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ class ExprIterator implements Iterator<ExprProb> {
|
|||||||
|
|
||||||
private void fetch() {
|
private void fetch() {
|
||||||
if (!fetched) {
|
if (!fetched) {
|
||||||
ep = fetchExprProb(enumRef, out_pool);
|
ep = fetchExprProb(ref, out_pool);
|
||||||
fetched = true;
|
fetched = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,5 +21,5 @@ class Parser implements Iterable<ExprProb> {
|
|||||||
return iter;
|
return iter;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static native ExprIterator parse(Concr concr, String startCat, String s);
|
static native ExprIterator parse(Concr concr, String startCat, String s);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user