Duplicate :
|
|
Relates :
|
|
Relates :
|
Default build fails on x86_32 and arm32: * For target support_test_jdk_jtreg_native_support_libNativeAccess_libNativeAccess.o: /home/buildbot/worker/jdk14-linux/build/test/jdk/java/foreign/libNativeAccess.c: In function 'Java_TestNative_getByteRaw': /home/buildbot/worker/jdk14-linux/build/test/jdk/java/foreign/libNativeAccess.c:30:18: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] jbyte *arr = (jbyte*)addr; ^ /home/buildbot/worker/jdk14-linux/build/test/jdk/java/foreign/libNativeAccess.c: In function 'Java_TestNative_getByteBuffer': /home/buildbot/worker/jdk14-linux/build/test/jdk/java/foreign/libNativeAccess.c:36:18: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast] jlong addr = (jlong)(*env)->GetDirectBufferAddress(env, buf);
|