From: Mathieu Baudier Date: Wed, 10 May 2023 04:06:56 +0000 (+0200) Subject: Small improvements to JShell X-Git-Tag: v2.3.16~6 X-Git-Url: http://git.argeo.org/?a=commitdiff_plain;h=dd2f6571ca77d90d47e82f0d14704742aadc7d0e;p=lgpl%2Fargeo-commons.git Small improvements to JShell --- diff --git a/org.argeo.cms.jshell/src/org/argeo/cms/jshell/CmsJShell.java b/org.argeo.cms.jshell/src/org/argeo/cms/jshell/CmsJShell.java index e3718ae73..a3fcf3f80 100644 --- a/org.argeo.cms.jshell/src/org/argeo/cms/jshell/CmsJShell.java +++ b/org.argeo.cms.jshell/src/org/argeo/cms/jshell/CmsJShell.java @@ -54,7 +54,7 @@ public class CmsJShell { jtermLinkedDir = Files.createSymbolicLink(cmsState.getStatePath(JShellClient.JTERM), jtermBase); log.info("Local JShell on " + jshBase + ", linked to " + jshLinkedDir); - log.info("Local JTerml on " + jtermBase + ", linked to " + jtermLinkedDir); + log.info("Local JTerm on " + jtermBase + ", linked to " + jtermLinkedDir); new Thread(() -> { try { diff --git a/org.argeo.cms.jshell/src/org/argeo/internal/cms/jshell/osgi/OsgiExecutionControlProvider.java b/org.argeo.cms.jshell/src/org/argeo/internal/cms/jshell/osgi/OsgiExecutionControlProvider.java index a98326c30..fbca08586 100644 --- a/org.argeo.cms.jshell/src/org/argeo/internal/cms/jshell/osgi/OsgiExecutionControlProvider.java +++ b/org.argeo.cms.jshell/src/org/argeo/internal/cms/jshell/osgi/OsgiExecutionControlProvider.java @@ -112,7 +112,9 @@ public class OsgiExecutionControlProvider implements ExecutionControlProvider { } String std = """ + /open DEFAULT import jdk.jshell.spi.ExecutionEnv; + import java.util.function.*; /** Redirected standard IO. */ public class Std {