I didn't realize that anyone was using the old FXRobot. I don't remember
this showing up on Jonathan's list of internal APIs that apps were
using, but I may have missed it.
I see two choices: 1) revert the change as you suggested...the cost of
keeping this code around isn't all that heavy; 2) add the missing
functionality into glass robot. The former might be easier in the short
term, but the latter is preferable.
-- Kevin
Benjamin Gudehus wrote:
Hey,
yesterday a code change was made [1, 2] which removes FXRobot and the
com.sun.javafx.robot package in JavaFX 9.
The com.sun.javafx.robot package contains obsolete, unused Prism
functionality that was intended for testing automation. It was superseded
long ago by glass Robot and should be removed as dead code.
Unfortunately FXRobot allows a use-case which is not covered by the glass
robot. In TestFX we use the FXRobot to fire keytyped events that allow to
type arbitrary (Unicode) characters. This solves multiple issues related to
non-english keyboards and special characters and simplifies simulation of
keyboard input greatly. There is also a commercial JavaFX framework that
uses FXRobot to solve this issue; I spoke with the developers a while ago.
If possible, could this change be reverted?
[1] https://bugs.openjdk.java.net/browse/JDK-8156809
[2] http://cr.openjdk.java.net/~kcr/8156809/webrev.00/
Regards,
Benjamin