[OpenJDK 2D-Dev] [9] RFR JDK-8072682: getBounds call on graphics.getDeviceConfiguration() returning cached information
prasanta sadhukhan
prasanta.sadhukhan at oracle.com
Thu Oct 8 08:12:13 UTC 2015
Hi All,
Please review a fix for jdk9
Bug: https://bugs.openjdk.java.net/browse/JDK-8072682
webrev: http://cr.openjdk.java.net/~psadhukhan/8072682/webrev.00/
BufferedImageGraphicsConfig creates a cache to store the BufferedImage
information but it was found that the cache shares the
GraphicsConfiguration across images of the same type,
so for different images of same type, the first stored information is
returned when getBounds() is queried.
The consensus is instead of adding image bounds info to the cache, let
the deviceConfig.getBounds() returns the MAXINT bounds.
Regards
Prasanta
More information about the 2d-dev
mailing list