JDK-6425608 : PIT: Changing the frame's icon after it is shown does not work on Solaris
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_10
  • CPU: sparc
  • Submitted: 2006-05-14
  • Updated: 2006-05-24
  • Resolved: 2006-05-24
Related Reports
Duplicate :  
Relates :  
Description
I have set an icon to the frame and I have made the frame visible. The frame is showing the icon set. I am clicking on a button in the frame. On clicking this button, I am reading a new image and setting it as the icon for the frame. I expect the icon to change to this new icon. But the icon did not change and the frame still retains the old icon.

This is reproducible on Solaris-Sparc10-JDS with b85 AWT PIT build. This is not reproducible on b84 promoted build on the same platform, where the frame's icon changes as soon as I click the button. Hence this is a regression introduced in the b85 PIT build.

I have attached a sample test. Run the same test. You would see a frame with a duke icon. Click on the button. If the icon does not change to flower icon, the bug is reproduced.

Comments
EVALUATION The frame doesn't change icon because second image is too big. If second image is scaled to 25% from original, everything works fine.
24-05-2006

EVALUATION The bug is caused by fix for 6339074. Could not reproduce on Solaris9-JDS session working on remote desktop from Linux, probably an XServer issue.
17-05-2006