Commit 90ebf8a2 authored by Claes Sjofors's avatar Claes Sjofors

Java bugfix, subscription of String arrays didn't work

parent 6dc0ef8e
......@@ -407,7 +407,7 @@ JNIEXPORT jobjectArray JNICALL Java_jpwr_rt_Gdh_getObjectRefInfoStringArray
for(i=0;i<elements;i++)
{
(*env)->SetObjectArrayElement(env, jobjectArr, i, (*env)->NewStringUTF( env, p));
id += size;
p += size;
}
}
else
......@@ -439,7 +439,7 @@ JNIEXPORT jobjectArray JNICALL Java_jpwr_rt_Gdh_getObjectRefInfoStringArray
&len, NULL);
(*env)->SetObjectArrayElement(env, jobjectArr, i, (*env)->NewStringUTF( env, (char *)buffer));
id += size;
p += size;
}
}
return jobjectArr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment