> 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`
Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision: Made test headless ------------- Changes: - all: https://git.openjdk.java.net/jdk/pull/8450/files - new: https://git.openjdk.java.net/jdk/pull/8450/files/8bf50cca..ae7a4a4b Webrevs: - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=8450&range=02 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=8450&range=01-02 Stats: 84 lines in 1 file changed: 16 ins; 57 del; 11 mod Patch: https://git.openjdk.java.net/jdk/pull/8450.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/8450/head:pull/8450 PR: https://git.openjdk.java.net/jdk/pull/8450