JDK-8170162 : jshell tool: no mechanism to programmatically launch
  • Type: Bug
  • Component: tools
  • Sub-Component: jshell
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2016-11-22
  • Updated: 2017-05-17
  • Resolved: 2016-12-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9 b150Fixed
Related Reports
Relates :  
Relates :  
Sub Tasks
JDK-8170194 :  
JDK-8170195 :  
Description
No access to launch from a program.

Comments
Out for review -- Goldilocks and the three launching mechanisms... She lay down in the first bed, but it was too hard. java.util.spi.ToolProvider (8169821) has a severe impedance mismatch: the use of Writers, no InputStream, and no flexibility. Then she lay in the second bed, but it was too soft. javax.tools.ToolProvider (8170044) would require significant changes that are not possible at this time, it is limited, and is old mechanism. Then she lay down in the third bed and it was just right. Goldilocks fell asleep. jdk.jshell.tool (8170162) provides a matching, clean, and configurable launching mechanism Please review... Bug: 8170162: jshell tool: no mechanism to programmatically launch https://bugs.openjdk.java.net/browse/JDK-8170162 Sub-Tasks (tiny tweaks to other repos): 8170194: jshell tool (jdk repo): launch tool from JShellToolProvider https://bugs.openjdk.java.net/browse/JDK-8170194 8170195: jshell tool (make): update javadoc generation for jdk.jshell https://bugs.openjdk.java.net/browse/JDK-8170195 Webrevs: http://cr.openjdk.java.net/~rfield/8170162v0.webrev/ http://cr.openjdk.java.net/~rfield/8170194v0.webrev/ http://cr.openjdk.java.net/~rfield/8170195v0.webrev/ API: http://cr.openjdk.java.net/~rfield/8170162v0.jshellAPI/ SpecDiff: http://cr.openjdk.java.net/~rfield/8170162v0.specdiff/overview-summary.html Thanks, Robert
26-11-2016