JDK-6643518 : Applets that differ only in java_version should run in one jvm if no requested jre
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u10
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,windows
  • CPU: generic
  • Submitted: 2007-12-19
  • Updated: 2010-09-08
  • Resolved: 2008-02-21
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
6u10 b12Fixed
Related Reports
Duplicate :  
Relates :  
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/
18-01-2008

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.
18-01-2008