Fix compilation issue

This commit is contained in:
Andrea Cavalli 2022-01-26 21:45:41 +01:00
parent 5615c8019a
commit 5c0434c73f

View File

@ -100,7 +100,7 @@ public class MemorySegmentUtils {
try { try {
if (!isSupported()) { if (!isSupported()) {
if (PlatformDependent.hasDirectBufferNoCleanerConstructor()) { if (PlatformDependent.hasDirectBufferNoCleanerConstructor()) {
return PlatformDependent.directBuffer(address, (int) size); return PlatformDependent.directBuffer(address, (int) size, null);
} }
throw new UnsupportedOperationException("Foreign Memory Access API is disabled!" throw new UnsupportedOperationException("Foreign Memory Access API is disabled!"
+ " Please set \"" + MemorySegmentUtils.getSuggestedArgs() + "\"", + " Please set \"" + MemorySegmentUtils.getSuggestedArgs() + "\"",