The SR_RecognizerResultGetKeyList should return [Ljava/lang/String,
however the code as written before the change will actually return
[[Ljava/lang/String
This "worked" before, probably by accident, but since
dvmFindArrayClassForElement has been rewritten to no longer used a
cached arrayClass. The dvmFindArrayClassForElement actually prepends
the [ and it should not be in SR_RecognizerResultGetKeyList.
Change-Id: Ida74600f224d8a7f9906c51b1881dcb9451cc289
}
// create String[] of keys
- jclass stringClass = env->FindClass("[Ljava/lang/String;");
+ jclass stringClass = env->FindClass("java/lang/String");
if (!stringClass) return NULL;
jobjectArray array = env->NewObjectArray(listSize, stringClass, NULL);
if (!array) return NULL;