JDK-8148877 : (spec) Specify when an empty '+' is required in a version string
  • Type: Bug
  • Component: other-libs
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-02-02
  • Updated: 2017-05-05
  • Resolved: 2017-04-21
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 10 JDK 9
10Fixed 9 b167Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
We need an empty '+' to determine whether "foo" in the version string  "9-foo" represents $PRE or $OPT.  In this case, "9-foo" should interpret "foo" as $PRE while "9+-foo" would interpret "foo" as $OPT.

'+' is required for empty build when OPT is present and PRE is not.  "9+-opt" and "9-pre-opt" are legal.  "9+" is not.  

Both JEP 223 and the specification for jdk.Version (lines 48, 113, 130, and 160)  need to be updated to describe this.