United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6643518 Applets that differ only in java_version should run in one jvm if no requested jre
JDK-6643518 : Applets that differ only in java_version should run in one jvm if no requested jre

Details
Type:
Bug
Submit Date:
2007-12-19
Status:
Closed
Updated Date:
2010-09-08
Project Name:
JDK
Resolved Date:
2008-02-21
Component:
deploy
OS:
generic,windows
Sub-Component:
plugin
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u10 (b12)

Related Reports
Duplicate:
Relates:

Sub Tasks

Description
Three applets differs only in java_version

import javax.swing.*;
public class TinyApplet extends JApplet {
}


<html>
<body>
<applet code="TinyApplet" codebase="." width="100" height="100"
></applet>
<applet code="TinyApplet" codebase="." width="100" height="100"
java_version="1.5.0*"></applet>
<applet code="TinyApplet" codebase="." width="100" height="100"
java_version="1.4.2*"></applet>
</boby></html>

if 6u10 is the only installed jre, all three applets should run in just one 6u10 subordinate jvm.

What observed in the current b10 is that three 6u10 jvms launched.
See also the test cases from 6644932 when fixing this bug.

                                    

Comments
SUGGESTED FIX

http://sa.sfbay.sun.com/projects/deployment_data/6u10/6643518.0
testcase: http://j2se.east.sun.com/deployment/www/tests/1.6.0_10/6643518/
                                     
2008-01-18
EVALUATION

Refactored the JVM instance and creation code in the JVMManager into a
new getOrCreateBestJVMInstance method which properly handles the case
where a version selection request can not be satisfied because no such
JRE version is available on the system, not simply because no such JRE
version is currently running.
                                     
2008-01-18



Hardware and Software, Engineered to Work Together