JDK-8265019 : Update tests for additional TestNG test permissions
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 17
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2021-04-09
  • Updated: 2024-07-09
  • Resolved: 2021-04-14
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.
JDK 11 JDK 17 JDK 7 JDK 8
11.0.13-oracleFixed 17 b19Fixed 7u321Fixed 8u311Fixed
Related Reports
Duplicate :  
Description
The following shows places in tests where permissions are being given to TestNG.

 grep -r 'PropertyPermission("testng' open/test/jdk
open/test/jdk/java/lang/ProcessHandle/PermissionTest.java:        permissions.add(new PropertyPermission("testng.show.stack.frames",
open/test/jdk/java/sql/testng/util/TestPolicy.java:        permissions.add(new PropertyPermission("testng.show.stack.frames",

These classes are used in a number of tests, which fail when using the upcoming new TestNG version.  These tests should be updated to allow the newly-required additional properties.
Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk8u-dev/pull/469 Date: 2024-03-19 16:44:08 +0000
09-07-2024

Fix request [11u] I downport this for parity with 11.0.13-oracle. No risk, only a test change. Clean except for copyright. Nighttests passed.
27-09-2021

Changeset: ffb37718 Author: Lance Andersen <lancea@openjdk.org> Date: 2021-04-14 15:42:55 +0000 URL: https://git.openjdk.java.net/jdk/commit/ffb37718
14-04-2021

These tests are softly-blocking the upgrade to the latest jtreg. They need to be fixed or put on the problem list.
09-04-2021