fix java-c-jni sigsegv

Signed-off-by: Mattias Andrée <maandree@operamail.com>
do not allow extra arguments

Signed-off-by: Mattias Andrée <maandree@operamail.com>
misc

Signed-off-by: Mattias Andrée <maandree@operamail.com>