JDK-6529740 : Component.imageUpdate() can return true forever for animated images even if Component is not showing
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 1.1
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic
  • CPU: generic
  • Submitted: 2007-03-01
  • Updated: 2016-01-12
  • Resolved: 2016-01-12
Related Reports
Relates :  
Relates :  
Description
The implementation of Component.imageUpdate() returns true until it gets an ABORT
or an ALLBITS notification.  This works reasonably well and safely for most static
images since they tend to generate one or the other of those notifications fairly
quickly.  Unfortunately, an animated image may never send either of those status
notifications and so the imageUpdate method will always return true, even if the
image is no longer of interest.

Comments
SUGGESTED FIX Component.imageUpdate() should probably return false for a FRAMEBITS notification if it is no longer showing. This will terminate the image animation threads for animated images that are only being used by non-showing components.
01-03-2007