I have a frame with a canvas. On the canvas, I am rendering a Volatile Image from within the paint method of the canvas. When resizing the frame outwards, the image is supposed to be resized to the new size of the canvas and the frame. But what I see is only a portion of the volatile image is painted on the frame and rest of the areas are just white.
I reproduced it on jdk7-b28+ with Windows Vista Home Premium (Aero enabled) installed with Nvidia GeForce 8400M GS(laptop). I am not able to reproduce it on 6u10, 6 FCS releases. Hence it is a regression in jdk7. This painting issue does not happen when I use a swing container and JFrame instead of Frame + Canvas. This is reproducible with b33 PIT build as well.
Herewith I have attached the sample test. Run the sample test and you will see 2 rects. Resize the frame outward and see if the image is getting resized properly. If not, the bug is reproduced. I have also attached a screenshot.