JDK-8236045 : [TESTBUG] MismatchedWhiteBox test fails with missing WhiteBox$WhiteBoxPermission.class
  • Type: Bug
  • Component: hotspot
  • Sub-Component: test
  • Affected Version: 15
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-12-16
  • Updated: 2025-09-10
  • Resolved: 2019-12-16
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 15
11.0.21Fixed 15 b02Fixed
Related Reports
Relates :  
Description
After JDK-8199290, ClassFileInstaller is hard-coded to install WhiteBox$WhiteBoxPermission.class alongside WhiteBox.class. So in the MismatchedWhiteBox test, which creates a different version of the WhiteBox.class, we should have the inner class as well.

Comments
Fix Request (11u). On behalf of sendaoYan. Adds a security check to a whitebox test, test passes, no risk.
21-06-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/1963 Date: 2023-06-20 02:05:43 +0000
20-06-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u/pull/75 Date: 2023-06-19 12:28:02 +0000
19-06-2023

URL: https://hg.openjdk.java.net/jdk/jdk/rev/8af520f2976a User: iklam Date: 2019-12-16 23:21:30 +0000
16-12-2019