JDK-8139837 : JShell API: make a common JShellException
  • Type: Bug
  • Component: tools
  • Sub-Component: jshell
  • Affected Version: 9
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2015-10-19
  • Updated: 2017-05-17
  • Resolved: 2016-04-30
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 b117Fixed
Related Reports
Relates :  
Description
In SnippetEvent, I think using a return type of java.lang.Exception for the exception() method is unfortunately imprecise. I recommend either combining UnresolvedReferenceException and EvalException into a single type or introducing a common JShellException supertype for those exceptions to subclass. 
Comments
Out for review -- Bug: https://bugs.openjdk.java.net/browse/JDK-8139837 Webrev: http://cr.openjdk.java.net/~rfield/8139837.webrev/ Thanks, Robert
27-04-2016