This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Marco Trudel wrote:Perhaps in jni.cc in the function array_from_valist(). You could try something like this:
But the question remains: What to do about this? I have no idea where to look for this problem or what to do against. I would like to have the same behavior, but it's not worth it if it's a huge thing to implement...
for (int i = 0; i < arg_types->length; ++i)
{
values[i].j = 0; // Clean garbage out of the union so that buggy JNI code looking for jint where it should be looking for jboolean will work.
.
.
.
Note that I have not tested the code so I have no idea if it would work I don't even think we should do something like this, but it might work for you in a pinch.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |