Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6777221
Votes 0
Synopsis PIT : Security warning gets some times cut off on solaris.
Category java:classes_awt
Reported Against
Release Fixed 6u12(b03)
State 10-Fix Delivered, bug
Priority: 3-Medium
Related Bugs
Submit Date 27-NOV-2008
Description
The security warning gets cut off, some times. This is the new feature for x11 . It works fine on windows.  I have attached the screen shot of the same.

Step to reproduce:-
------------------
1) Run swingset2 on solaris.
2) Observe that security warning icon gets cut off. If you see the same then the bug is reproduced.  

This i tested on the 6u12 b02 respine build.  This is not reproduced always.
Posted Date : 2008-11-27 07:04:09.0
Work Around
N/A
Evaluation
There is a thread race between the main and the AWT-XAWT thread. The main thread invokes the XWarningWindow.getSecurityIconInfo() and gets a default icon of 24x24 pixels since the Insets for the window have not been correctly set yet. Later the AWT-XAWT thread invokes the same method and receives the correct insets which cause the icon to be sized 16x16. However, the actual XlibWrapper.XSetBitmapShape() call is made on the main thread a bit later than the one on the AWT-XAWT thread which assigns a 24x24 shape for the 16x16 window. This produces the cut off icon.

To resolve the issue we need to somehow synchronize setting the icon's shape.
Posted Date : 2008-12-05 13:14:38.0

It is reasonable to extract the shape-changing procedure from the getSecurityIconInfo() method and place it in the updateWarningWindowBounds() method instead, adding proper synchronization.
Posted Date : 2008-12-05 14:07:22.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang