JDK-8264137 : Suppress deprecation and removal warnings of internal methods
  • Type: Bug
  • Component: javafx
  • Sub-Component: other
  • Affected Version: jfx16
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-03-24
  • Updated: 2024-06-12
  • Resolved: 2021-06-23
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
jfx17Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
There are a few places in JavaFX where we use public JavaFX API that has been deprecated or deprecated for removal. Since there is no problem with using these methods internally, we should add the appropriate `@SuppressWarnings` annotation where needed to make the build less noisy.

I have attached a pair of log files generated by running:

gradle --info -PLINT="deprecation,removal"

The first file is the list of [deprecation] warnings and the second is the list of [removal] warnings.

Note that included in the list of deprecation warnings is a use of the deprecated newInstance method from java.base. These will be addressed separately, by using a replacement API, rather than suppressing the warnings.

Comments
Changeset: 063bfe87 Author: Ajit Ghaisas <aghaisas@openjdk.org> Date: 2021-06-23 13:31:55 +0000 URL: https://git.openjdk.java.net/jfx/commit/063bfe877555dea9e2060e651192f95e529db56d
23-06-2021

I filed JDK-8264138 to track the replacement of Class.newInstance()
24-03-2021

Most of these are in controls, so assigning to Ajit.
24-03-2021