JDK-8150632 : jdk.jshell.TaskFactory should use jdk.Version to check for java.specification.version
  • Type: Bug
  • Component: tools
  • Sub-Component: jshell
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2016-02-25
  • Updated: 2017-02-16
  • Resolved: 2016-03-10
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 b110Fixed
Related Reports
Relates :  
Relates :  
Description
Currently, jdk.jshell.TaskFactory does a hard check against java.specification.version being "9". Until JDK-8149519 will be resolved, this check will fail for any newer Java release (i.e. 9.0.0.1).

But even if  JDK-8149519 will be resolved, the check should actually check that java.specification.version is greater or equal to "9". This can be easily done with the new jdk.Version API.