On Thu, 28 Apr 2022 11:59:45 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> wrote:
> Test was failing in linux citing `java.lang.RuntimeException: Expected Total > TitledBorder to be freed : 10 Freed 9 ` > As per the fix done in JDK-8204963 > http://hg.openjdk.java.net/jdk/jdk/rev/cd7d2f9154fd > there was no platform specific code done for the fix and logs in > `TitledBorder.installPropertyChangeListeners` shows it was called 10 times > for the test but `CleanerFactory.cleaner().register` action was only called 9 > times in linux causing it to fail. > > Modified the test to not show the frame which cause the problem to go away > and also it can still be used as 8204963 regression test as it still fails > without the fix and pass with it. Modified test has passed in all platforms > for several iterations. > > Also removed the deprecated `System.runFinalization` This pull request has now been integrated. Changeset: 07d24509 Author: Prasanta Sadhukhan <psadhuk...@openjdk.org> URL: https://git.openjdk.java.net/jdk/commit/07d24509a68cc06f062b8249f207bc0d2148c79b Stats: 89 lines in 2 files changed: 16 ins; 61 del; 12 mod 8213531: Test javax/swing/border/TestTitledBorderLeak.java fails Reviewed-by: prr ------------- PR: https://git.openjdk.java.net/jdk/pull/8450