From c441c8f96b4ec9e0c3818c6b32c61c595cffda29 Mon Sep 17 00:00:00 2001 From: Dainius Jocas Date: Thu, 4 Feb 2021 11:44:10 +0200 Subject: [PATCH] fix: sci classes properly named --- src/polyglot/sci.clj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/polyglot/sci.clj b/src/polyglot/sci.clj index 6505cd6..f74cec0 100644 --- a/src/polyglot/sci.clj +++ b/src/polyglot/sci.clj @@ -5,8 +5,8 @@ (defn sci-compile [^String script] (sci/eval-string script - {:classes {'UUID UUID - 'Date Date}})) + {:classes {'java.util.UUID java.util.UUID + 'java.util.Date java.util.Date}})) (defn script->transform-fn [script] (let [transform-fn (sci-compile script)] @@ -29,4 +29,4 @@ (comment ((polyglot.sci/script->transform-fn-for-boost "(fn [& args] args)") 1 2 3) - ((polyglot.sci/script->transform-fn-for-boost "(fn [& args] (Date.))") 1 2 3)) + ((polyglot.sci/script->transform-fn-for-boost "(fn [& args] (java.util.Date.))") 1 2 3))