JDK-7043455 : Taking a screenshot may fail on X11 after 6903034
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,linux,linux_oracle_5.6
  • CPU: generic,x86
  • Submitted: 2011-05-10
  • Updated: 2013-08-22
  • Resolved: 2011-06-01
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 b143Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
The fix for 6903034 changed the behavior of the AWT Robot so that it now captures the screen image on the composite overlay window rather than on the root window of the display. This allows to take screenshots of translucent windows, otherwise transparent areas apeared as solid black with the old Robot implementation.

However, the fix causes multiple regressions when running existing AWT/2D tests: 7042149, 7042130, 7040022 to name a few.

Comments
EVALUATION 7043845 covers implementing better support for taking screenshots with translucent windows.
11-05-2011

EVALUATION Currently it is unclear how these regressions could be resolved. In order to stabilize JDK7 we must: 1. Backout the fix for 6903034. 2. Disable existing regression tests that verify translucent windows behavior on X11 (there's just a few of them). A better implementation of the getScreenCapture/getPixelColor() should be developed as a separate CR and available in a future JDK release.
10-05-2011