move event_change to jni_util.c