JDK-8264139 : Suppress removal warnings for Security Manager methods
  • Type: Bug
  • Component: javafx
  • Sub-Component: other
  • Affected Version: openjfx17
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-03-24
  • Updated: 2021-06-26
  • Resolved: 2021-06-15
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 :  
Relates :  
Description
Many of the security manager methods will be deprecated for removal in JDK 17 as part of JEP 411, JDK-8264713. Once this JEP is integrated, anyone using JDK 17 to build JavaFX will see '[removal]' warnings from the compiler.

You can use "gradle -PLINT=removal" to generate a list of these warnings.

We will build JavaFX using JDK 16 until after JDK 17 ships (so we won't switch until JavaFX 18), so this isn't urgent, but we should consider doing this for JavaFX 17 so we can test later builds of JavaFX 17 with JDK 17 without seeing the warning.
Comments
Changeset: c81a7226 Author: Kevin Rushforth <kcr@openjdk.org> Date: 2021-06-15 12:50:37 +0000 URL: https://git.openjdk.java.net/jfx/commit/c81a722614e46844c285d4a4a623352ef227da87
15-06-2021

Attached a preliminary patch provided by [~weijun].
24-03-2021