From 5eec39791e68759415a85be10a7192275b2f37d9 Mon Sep 17 00:00:00 2001 From: Joshua Suskalo Date: Wed, 15 Sep 2021 11:11:09 -0500 Subject: [PATCH] Import required classes from java 17 --- src/coffi/ffi.clj | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/coffi/ffi.clj b/src/coffi/ffi.clj index 6e92947..f3c0573 100644 --- a/src/coffi/ffi.clj +++ b/src/coffi/ffi.clj @@ -3,6 +3,8 @@ (:import (java.lang.invoke VarHandle) (jdk.incubator.foreign + CLinker + FunctionDescriptor MemoryAccess MemoryAddress MemoryHandles @@ -10,7 +12,7 @@ MemoryLayout$PathElement MemoryLayouts MemorySegment - FunctionDescriptor))) + ResourceScope))) (defmulti serialize* "Writes a serialized version of the `obj` to the given `segment`.