Hi,

 

Please review the following fix in JDK9:

 

Bug : https://bugs.openjdk.java.net/browse/JDK-8147413 

 

Webrev : http://cr.openjdk.java.net/~jdv/8147413/webrev.00/ 

 

Issue : JCK testcase 
api/java_awt/Image/MultiResolutionImage/index.html\#MultiResolutionRenderingHints[test_VALUE_RESOLUTION_VARIANT_BASE]
 is failing from b96 JDK9 build.

 

Root cause : In getManager API of SurfaceManager.java we are trying to typecast 
BaseMultiResolutionImage to BufferedImage and it is causing ClassCastException 
and in turn IllegalArgumentException seen in result of test case. It is 
happening because of change made in HYPERLINK 
"https://bugs.openjdk.java.net/browse/JDK-8073320"JDK-8073320 in 
SunGraphics2D.java. In case of VALUE_RESOLUTION_VARIANT_BASE type we are not 
trying to convert MultiResolutionImage to BufferedImage.

 

Solution : Modify the condition present in drawHiDPIImage API to convert all 
MultiResolutionImage to BufferedImage irrespective of KEY_RESOLUTION_VARIANT 
type.

 

Thanks,

Jay

 

Reply via email to