JDK-6425089 : PIT. Frame does not show a big size jpg image as icon
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_10
  • CPU: sparc
  • Submitted: 2006-05-12
  • Updated: 2011-01-19
  • Resolved: 2006-08-04
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 6
6 b95Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Description
This is reproducible only with Solaris 10 JDS, only with b85 PIT build.

I am calling frame.setIconImage with a big size (350*200) image as argument. The frame does not show the image set as icon. Instead it shows an empty rectangle as icon. This occurs for different image types - jpg, png, gif.

The images are properly shown with mustang b84. With the PIT build, the images are shown only if they are smaller in size.

The attached image can be used to reproduce the bug. If the frame does not show the proper image, the bug is reproduced.

Comments
SUGGESTED FIX Webrevs: http://javaweb.sfbay/jcg/1.6.0-mustang/awt/6425089/
25-07-2006

EVALUATION The allowed length of window hint is up to XServer and can't be determined before setting. Need to verify the returned value of XChangeProperty and scale icon images if error occurs.
24-05-2006

EVALUATION The regression caused by fix for 6339074. Previously icon was specified using icon window, from now on set of icon images is specified with _NET_WM_ICON hint. Works fine on Solaris remote desktop from Linux, so it's likely problem of Solaris XServer that doesn't support very long hints.
17-05-2006