<AWT Dev>  Review Request: 8074757 Remove java.awt.Toolkit methods which return peer types
Sergey.Bylokhov at oracle.com
Thu Apr 2 15:15:48 UTC 2015
Please review the fix for jdk 9.
There are a number of public methods in the java.awt.Toolkit class,
which reference the unsupported java.awt.dnd.peer and java.awt.peer
There is a decision to remove these references as described:
- All such methods were moved from Toolkit.java to the
ComponentFactory.java. Note that all our toolkits implement
- HToolkit, HeadlessToolkit, SunToolkit were cleared because they have
the same implementation of these methods as in ComponentFactory.
- The questionable moment is that I throw an AWTError in a some places
if a default toolkit not implements ComponentFactory interface.
Webrev can be found at: http://cr.openjdk.java.net/~serb/8074757/webrev.04
Best regards, Sergey.
More information about the awt-dev