[OpenJDK 2D-Dev] [9] RFR JDK-8072682: getBounds call on graphics.getDeviceConfiguration() returning cached information

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Fri Oct 9 15:37:14 UTC 2015


Hi, Prasanta.
It seems that width&height fields are not used after the fix and can be 
removed.

On 08.10.15 11:12, prasanta sadhukhan wrote:
> 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
>


-- 
Best regards, Sergey.



More information about the 2d-dev mailing list