When using JShell for interactive development and code exploration, it is often desirable to run JDK tools, that are usually executed on the command-line, “in-shell”: for example to avoid starting a new operating system shell and also for feeding a just created class as an input to a JDK tool and evaluate its output.
This is shown here https://sormuras.github.io/blog/2023-03-09-jshell-tooling - including a link to the source of TOOLING.jsh.
We should add TOOLING.jsh script to set of built-in load scripts in order to omit the "/open https://github.com/sormuras/jdk-tools/blob/main/TOOLING.jsh" command. It will even able users to start a JShell session with JDK tool support activated directly from the command-line via:
$> jshell TOOLING
jshell> interface Empty {}
jshell> javap(Empty.class)
This is shown here https://sormuras.github.io/blog/2023-03-09-jshell-tooling - including a link to the source of TOOLING.jsh.
We should add TOOLING.jsh script to set of built-in load scripts in order to omit the "/open https://github.com/sormuras/jdk-tools/blob/main/TOOLING.jsh" command. It will even able users to start a JShell session with JDK tool support activated directly from the command-line via:
$> jshell TOOLING
jshell> interface Empty {}
jshell> javap(Empty.class)
- duplicates
-
JDK-8306560 Add TOOLING.jsh load file
- Resolved