JDK-8156039 : Need additional unit tests for FXPermission
  • Type: Bug
  • Component: javafx
  • Sub-Component: other
  • Affected Version: 9
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • Submitted: 2016-05-04
  • Updated: 2021-04-15
  • Resolved: 2021-04-15
Related Reports
Blocks :  
Description
This is a follow-on bug for JDK-8091308 to write additional unit tests for the specific permissions added with the new FXPermission class.

Comments
The security manager will be deprecated for removal in JDK 17 as part of JEP 411, JDK-8264713. We will not spend any more effort increasing our test coverage in this area.
15-04-2021

Here are some brief notes I wrote, but forgot to add to the JBS issue: * Consider writing a new New FXPermissionTest unit test in systemTests project. The test would launch tests in one of five ways: - No security manager - Restrictive security manager - Security manager with policy file to grant a different permission - Security manager with policy file to grant the needed permission - Security manager with policy file to grant FXPermission "*" Test ideas for new permissions ------------------------------ modifyFXMLClassLoader - ??? setWindowAlwaysOnTop - Variant of CustomSecurityManagerTest ? unrestrictedFullScreen - Variant of CustomSecurityManagerTest ?
29-06-2017