RFR: 8330462: StringIndexOutOfBoundException when typing anything into TextField

Oliver Kopp duke at openjdk.org
Fri Apr 19 10:02:04 UTC 2024


On Fri, 19 Apr 2024 07:29:54 GMT, Johan Vos <jvos at openjdk.org> wrote:

> This can easily be done with a unit test,

How to create an instance of `WinTextRangeProvider` with a fake `WinAccessible`? I need `WinAccessible.getAttribute(...)`. Normally, I would have used Mockito... `WinAccessible` is `final`. -- I do not dare to remove `final` just for test subclassing ^^.

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

PR Comment: https://git.openjdk.org/jfx/pull/1442#issuecomment-2066239868


More information about the openjfx-dev mailing list