JDK-8213531 : Test javax/swing/border/TestTitledBorderLeak.java fails
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 11,12
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • Submitted: 2018-11-08
  • Updated: 2022-06-10
  • Resolved: 2022-06-02
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 19
19 b26Fixed
Related Reports
Relates :  
Description
Test Test javax/swing/border/TestTitledBorderLeak.java fails on Ubuntu 18.04 with following error message

java.lang.RuntimeException: Expected Total TitledBorder to be freed : 10 Freed 9
	at TestTitledBorderLeak.main(TestTitledBorderLeak.java:79)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:835)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Expected Total TitledBorder to be freed : 10 Freed 9
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Expected Total TitledBorder to be freed : 10 Freed 9
Comments
Changeset: 07d24509 Author: Prasanta Sadhukhan <psadhukhan@openjdk.org> Date: 2022-06-02 03:39:39 +0000 URL: https://git.openjdk.java.net/jdk/commit/07d24509a68cc06f062b8249f207bc0d2148c79b
02-06-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/8450 Date: 2022-04-28 11:59:45 +0000
28-04-2022

The same issue was observed with 17.0.1+12-39 on Windows 10 see attached TestTitledBorderLeak-1.jtr
09-12-2021