RFR: 8255337: [TestBug] Controls unit tests - ButtonTest and ComboBoxTest - log ClassCastException [v2]

Ajit Ghaisas aghaisas at openjdk.java.net
Tue Oct 27 11:35:29 UTC 2020


On Tue, 27 Oct 2020 10:41:17 GMT, Jeanette Winzenburg <fastegal at openjdk.org> wrote:

>> makes sense :)
>
> just looked at MouseEventFirer (a bit late, sry ;): all it does is to dispose the Stageloader it created (if it received a bare node) - so if we add a node to a stage and/or wrap it into our own loader, we don't really need to dispose the firer (though it doesn't hurt except a very minimal code clutter)

If we use our own loader - we would need to dispose that as well :)

Also, I found approach (1) of using reference at test class level and cleaning it up in cleanup method after the test is more suitable as in ButtonTest, the assertion happens in event handler. Wrapping it in try..finally will need additional code.
I will push the changes in a moment.

-------------

PR: https://git.openjdk.java.net/jfx/pull/337


More information about the openjfx-dev mailing list