JDK-8256649 : Parameterized tests must not use instances as parameters
  • Type: Bug
  • Component: javafx
  • Sub-Component: controls
  • Affected Version: openjfx14,openjfx15
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-11-19
  • Updated: 2022-10-21
  • Resolved: 2020-11-20
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.
Other
openjfx16Fixed
Related Reports
Relates :  
Description
JDK-8244531 introduced parameterized tests to guard against memoryleaks in in all controls, namely BehaviorMemoryLeakTest and SkinMemoryLeakTest. 

They use control instances as parameters: that's incorrect because the parameter is shared by all test methods. This may lead to inter-test effects when the state of the control is changed. Which accidentally doesn't happen in those tests, they have a single test method each ;)

The fix is to have control class as parameters and instantiate the control in setup.
Comments
Changeset: 8e03018a Author: Jeanette Winzenburg <fastegal@openjdk.org> Date: 2020-11-20 10:30:51 +0000 URL: https://github.com/openjdk/jfx/commit/8e03018a
20-11-2020