<AWT Dev> [13] Review Request: 8216318 The usage of Disposer in the java.awt.Robot can be deleted

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Sat Jan 12 02:45:34 UTC 2019


Hello.
Please review the fix for jdk 13.

Bug: https://bugs.openjdk.java.net/browse/JDK-8216318
Webrev: http://cr.openjdk.java.net/~serb/8216318/webrev.01

Every java.awt.Robot object register a RobotDisposer which
are responsible to delete the native data of the robot. But
there is no native data on linux/mac, so RobotDisposer is
a noop on these platforms. On windows the native c++ class
"AwtRobot" and the code responsible for allocation/deallocation
its objects can be removed.

-- 
Best regards, Sergey.


More information about the awt-dev mailing list