JDK-8344906 : Simplify Java version parsing in the build file
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: build
  • Affected Version: jfx23
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-11-23
  • Updated: 2025-02-07
  • Resolved: 2024-11-27
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.
Other
jfx24 b19Fixed
Related Reports
Blocks :  
Description
The build file uses manual parsing of version strings. Java 9 added Runtime.Version (https://docs.oracle.com/en/java/javase/23/docs/api/java.base/java/lang/Runtime.Version.html) that does parsing and comparison (it implements Comparable).

Replacing the manual code with the JDK's simplifies the build file and is less error prone.
Comments
Changeset: 4af67c12 Branch: master Author: Nir Lisker <nlisker@openjdk.org> Date: 2024-11-27 14:29:30 +0000 URL: https://git.openjdk.org/jfx/commit/4af67c1286f119a967e2758ab373c1a625843308
27-11-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jfx/pull/1647 Date: 2024-11-23 09:22:36 +0000
23-11-2024