United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-6926204 : regression: Jnlp shortcut icon is corrupted

Details
Type:
Bug
Submit Date:
2010-02-13
Status:
Resolved
Updated Date:
2010-09-08
Project Name:
JDK
Resolved Date:
2010-03-30
Component:
deploy
OS:
solaris_8,windows_xp,windows_vista
Sub-Component:
webstart
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u10,6u18
Fixed Versions:
6u21 (b02)

Related Reports
Duplicate:
Duplicate:

Sub Tasks

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



Hardware and Software, Engineered to Work Together