JDK-6515083 : awt_Canvas.cpp uses unreliable flag
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: windows
  • CPU: x86
  • Submitted: 2007-01-19
  • Updated: 2011-03-07
  • Resolved: 2011-03-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b10Fixed
Related Reports
Relates :  
Description
There's a potential problem at the awt_Canvas.cpp file. There's a flag named windowSizing declared at the awt_Component.cpp. The flag is shared among all the toplevel windows. Upon receiving the WM_SIZING message, the flag is set to true, and upon the WM_EXITSIZEMOVE message it's set back to false. It was explored that we cannot rely on the WM_EXITSIZEMOVE message (see the evaluation of the 6355340). The flag is used in the awt_Canvas.cpp to determine whether it's necessary to erase the background of a window, and as such fixing the problem could eliminate (or identify new  :)  ) some flickering issues.

Comments
EVALUATION Need to maintain some sort of a global m_resizing flag (see the awt_Window.cpp file). Another option is to get the value of the specific m_resizing flag that is related to the window that needs its background to be erased.
19-01-2007