JDK-8257512 : Remove use of deprecated primitive constructors in JavaFX
  • Type: Bug
  • Component: javafx
  • Sub-Component: other
  • Affected Version: openjfx16
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-12-01
  • Updated: 2021-04-05
  • Resolved: 2021-03-12
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
openjfx17Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
The primitive constructors ("new Double", "New Integer", etc) were deprecated in JDK 9, and will be terminally deprecated in JDK 16 for subsequent removal. See JDK-8249100. We need to replace all calls to these constructors either with a call to the appropriate "valueOf" factory method or with auto-boxing. See JDK-8154213 for some considerations to be aware of.
Comments
Changeset: 92d62322 Author: Ambarish Rapte <arapte@openjdk.org> Date: 2021-03-12 04:16:55 +0000 URL: https://git.openjdk.java.net/jfx/commit/92d62322
12-03-2021

This should be done early in JavaFX 17 (before we switch to using JDK 16 as the boot JDK).
01-12-2020

See the attached file for a list of such occurrences.
01-12-2020