JDK-8327924 : Simplify TrayIconScalingTest.java
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 22
  • Priority: P5
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-03-12
  • Updated: 2024-11-11
  • Resolved: 2024-03-21
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 21 JDK 23
11.0.26-oracleFixed 17.0.14-oracleFixed 21.0.6-oracleFixed 23 b16Fixed
Related Reports
Relates :  
Relates :  
Description
The test/jdk/java/awt/TrayIcon/TrayIconScalingTest.java test uses PassFailJFrame and combines builder and positioning of the windows. Previously, calling PassFailJFrame.positionTestWindow was required to show the instructions; now the instructions are shown automatically after build() is called on the builder.

Moreover, using PassFailJFrame.positionTestWindow moves the instructions to the left of the screen. Since there's no test UI, the instructions could and should remain centered.
Comments
Fix request [17u,21u] I backport this for parity with 17.0.14-oracle,21.0.6-oracle. No risk, only a test change Clean backport. Test passes on win. SAP nightly testing passed.
11-11-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk17u-dev/pull/3032 Date: 2024-11-07 09:34:02 +0000
07-11-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk21u-dev/pull/1133 Date: 2024-11-07 09:33:50 +0000
07-11-2024

Changeset: 1496b5de Author: Alexey Ivanov <aivanov@openjdk.org> Date: 2024-03-21 16:02:17 +0000 URL: https://git.openjdk.org/jdk/commit/1496b5de9004c6a9e43ead5f6e9e88362028a7cc
21-03-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/18224 Date: 2024-03-12 08:33:41 +0000
12-03-2024