JDK-6993784 : Clarification to shaped/translucent windows specification is required
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P1
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2010-10-21
  • Updated: 2017-05-16
  • Resolved: 2011-05-18
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 b121Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
According to development, spec is not ready and the feature behavior is going to change. See Comments for more details.

This is showstopper for testing.
I'm changing the synopsis of this CR as it's not completely correct. The specification for shaped and translucent window is there, but it should be slightly corrected:

1. All the effects (shapes, translucency) for decorated windows are prohibited.

2. Should clarify the behavior when exceptions are thrown. For example, in setBackground() we don't specify if the background color is changed or not, if the passed color alpha is less than 1.0f, but the corresponding translucency type is not supported.

3. The spec also contains some typos that should be corrected.

4. Specification for 'null' value for background color in Window.setBackground() should be added.

Comments
EVALUATION Specification for shaped & translucent windows should be extended to prohibit creating decorated shaped and/or non-opaque windows. In 6u10 we had this restriction (see com.sun.awt.AWTUtilities spec), but it was lost when fw-ported to 7
22-10-2010