JDK-6926204 : regression: Jnlp shortcut icon is corrupted
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 6u10,6u18
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_8,windows_xp,windows_vista
  • CPU: x86
  • Submitted: 2010-02-13
  • Updated: 2010-09-08
  • Resolved: 2010-03-30
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
6u21 b02Fixed
Related Reports
Duplicate :  
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Windows Vista 64  (also reported in WinXp)

A DESCRIPTION OF THE PROBLEM :
The shortcut icon for an application has bands of empty pixels in it.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
The shortcut appeared correctly on java version 1.6.0_17, but fails on java version 1.6.0_18. The shortcut is a .png file. I have replicated this by uninstalling java, installing version _17 running the jnlp, comfirmed good shortcut, then installed version _18 and confirmed bad icon.

The shortcut url is a .png file.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Expect to see an icon that resembles the .png file.
ACTUAL -
the icon has bands in it

ERROR MESSAGES/STACK TRACES THAT OCCUR :
no error message

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
no source code
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
no workaround, minor display issue only.

Comments
EVALUATION Problem is in IcoEncoder.getAndScanSize(). The parenthesees are in the wrong place: int dwords = (4 * ((bytes + 3))/4); instead of: int dwords = (4 * ((bytes + 3)/4)); this causes the mask bitmap to be messed up.
2010-03-02

EVALUATION I can reproduce the problem now with customer's application: http://www.vas.com/SCS2.jnlp attached the PNG in the bug too.
2010-02-16

EVALUATION Need a copy of the PNG that can be used to reproduce the bug. Emailed submitted for more information.
2010-02-15