United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6874336 jnlp.packEnabled and jnlp.versionEnabled should not cause any JVM relaunch
JDK-6874336 : jnlp.packEnabled and jnlp.versionEnabled should not cause any JVM relaunch

Details
Type:
Bug
Submit Date:
2009-08-20
Status:
Closed
Updated Date:
2010-09-16
Project Name:
JDK
Resolved Date:
2009-12-02
Component:
deploy
OS:
generic
Sub-Component:
deployment_toolkit
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u10,6u15
Fixed Versions:
6u18 (b03)

Related Reports
Backport:
Duplicate:
Relates:
Relates:
Relates:

Sub Tasks

Description
Use of jnlp.packEnabled and jnlp.versionEnabled should not cause any JVM relaunch.

Right now, if specified in JNLP file only, it will relaunch JVM, for both browser applet and webstart application case.

This property is only used by webstart/plugin to determine whether we should reqest .jar.pack.gz instead of .jar for JAR download.

So as long as we set it right after we parse the JNLP file, we are good.  There is no reason to relaunch JVM because of this.

                                    

Comments
EVALUATION

In ResourcesDesc, instead of reading system property to determine whether pack200 or version is enabled, it now has private boolean variables _pack200Enabled and _versionEnabled. These 2 variables will be set through the setPack200Enabled() and the setVersionEnabled() methods in ResourcesDesc from XMLFormat when it encounters the pack200Enabled or the versionEnabled property and if the property is set to true.
Similar boolean variables and methods are also added to the JARDesc. In XMLFormat, after setting up an instance of ResourcesDesc, it traverses through the list of JARDesc and sets the _pack200Enabled and _versionEnabled if necessary.
The changes in JVMParameters is to simplify the isExcluded() method - the check should apply to both the plugin and web start cases.
                                     
2009-09-21



Hardware and Software, Engineered to Work Together