Fix JNI issues in NativeCollation.

We need to make sure the jchar array (and the corresponding
input string) are valid throughout the iteration, not just
during the JNI call that creates the iterator.

bug: 12817544
Change-Id: I8dda0a7238a743da0d0e2b4c956ec0806ce3555b
1 file changed