[Info-vax] JNI problem on I64

Arne Vajhøj arne at vajhoej.dk
Wed Jan 26 08:24:28 EST 2022


On 1/26/2022 4:50 AM, hb wrote:
> On 1/26/22 01:39, Arne Vajhøj wrote:
>> Code outline:
>>
>> ... (JNIEnv *cntx, jobject baobj)
>> ...
>> signed char *buf;
>> ...
>> buf = (*cntx)->GetByteArrayElements(cntx, baobj, NULL);
>> ...
>> ...
>> ...
>> (*cntx)->ReleaseByteArrayElements(cntx, baobj, buf, 0);
>>
>> VMS Alpha 8.4 with Java 1.5 : works fine
>>
>> VMS I64 8.4 with Java 8 : crashes (the output is attached below)
>> ...
> 
> Just to make sure it isn't a 32-/64-bit problem: how do you compile? 
> Java 8 on VMS requires JNIs to use 64-bit pointers.

I do use /pointer=64.

Arne


More information about the Info-vax mailing list