JShell doesn't provide a ToolProvider
Alan Bateman
Alan.Bateman at oracle.com
Wed Nov 16 11:29:42 UTC 2016
On 16/11/2016 09:23, Remi Forax wrote:
> Hi all, hi Robert,
> currently, unlike javac or javadoc, there is no way to directly invoke jshell (JShellTool) because it lies in an internal package (which is a good idea).
>
> I think the module jdk.jshell should provide a java.util.spi.ToolProvider so i can embed jshell, like i can embed any dynmic langage runtimes, in my program instead of having to invoke it using the command line (without being able to control the exact version of jshell or even if jshell is present in case of a custom jdk image).
>
This was discussed as part of introducing the SPI [1], you'll see the
mails from Robert where he points out that this doesn't fit.
-Alan
[1]
http://mail.openjdk.java.net/pipermail/compiler-dev/2016-October/010379.html
More information about the core-libs-dev
mailing list