Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4901281

Java Plug-in for IE creates handles for each js to java

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.3.1
    • deploy
    • x86
    • windows_2000



      Name: gm110360 Date: 08/05/2003


      FULL PRODUCT VERSION :
      java version "1.3.1_08"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_08-b03)
      Java HotSpot(TM) Client VM (build 1.3.1_08-b03, mixed mode)

      FULL OS VERSION :
      Microsoft Windows 2000 [Version 5.00.2195]


      A DESCRIPTION OF THE PROBLEM :
      The fix made on 1.4.2 branch was not merged to the 1.4.1, 1.4.0, 1.3.1 braches. Latest releases of 1.4.1,1.4.0 and 1.3.1 all have this severe problem. And you plugin installation link still installs 1.4.1 with this bug. It would be GREAT, if you the fix done on 1.4.2 to all the braches below to 1.4.2.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      any javascript to java function call

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Handles should not increase, and MUST be release after each java metho
      call from javascript. Handles are created and never released until the
      computer goes out of resources.

      ACTUAL -
      explained in "steps to reproduce section"


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      ---------------------------------------------------------------------------
      ** The following html is used: (test1.htm)
      ---------------------------------------------------------------------------
      <html>
      <head>
      <script LANGUAGE="JavaScript">
      function blowHandles() {
      for (var i=0;i<10000;i++) { a1.method1 (); }
      window.setInterval(blowMoreHandles,5);
      }
      function blowMoreHandles() {
        a1.method1 ();
      }
      </script>
      </head>
      <body>
      <input type=button onclick="blowHandles()" value="Test"></input>
      <APPLET code="test1.applet1.class" archive="test1.jar" id="a1"
      name="a1">
      <PARAM NAME = "scriptable"VALUE="true">';
      </APPLET>
      </body>
      </html>
      ---------------------------------------------------------------------------

      ---------------------------------------------------------------------------
      ** The following applet: (test1/applet1.java)
      ---------------------------------------------------------------------------
      package test1;
      import java.applet.*;
      public class applet1 extends Applet {
      public void method1 () {}
      }

      ---------- END SOURCE ----------
      (Incident Review ID: 193722)
      ======================================================================

            Unassigned Unassigned
            gmanwanisunw Girish Manwani (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: