Hi, Maksim. It seems that this code was written when the «getDefaultTransform()» returns an identity transform, this is why the MultiResolutionDragImageTest.getScaleFactor() uses an internal method of the SunGraphics2D. Since then the getDefaultTransform() was updated and can be used directly(like in your fix), but it looks like all other stuff in MultiResolutionDragImageTest.getScaleFactor() is not necessary and can be removed, because the Graphics which is passed to paint() method is not used anymore.
> > Hello, > > please review this request... > > Webrev: http://cr.openjdk.java.net/~avstepan/8154314/webrev.01/ > <http://cr.openjdk.java.net/%7Eavstepan/8154314/webrev.01/> > Issue: https://bugs.openjdk.java.net/browse/JDK-8154314 > > Test bug. Compilation of > java/awt/datatransfer/DragImage/MultiResolutionDragImageTest.java still fails > due removed method > > Thanks, > Maksim.
