JDK-4515120 : JavaWebStart doesn't call applet's destroy() method
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 1.0.1
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2001-10-16
  • Updated: 2001-10-16
  • Resolved: 2001-10-16
Related Reports
Duplicate :  
Description
Found the duplicate after I posted the bug.

Name: nt126004			Date: 10/16/2001


java version "1.2.2"


It seems that Java Web Start doesn't call the applet's destroy() method when quitting

example :

My applet code is :

package example;

import java.awt.*;
import java.awt.event.*;
import java.applet.*;

public class HelloWorld extends Applet {

  public HelloWorld() {
  }

  public void init(){
    System.out.println("INIT");
  }

  public void start(){
    System.out.println("START");
  }

  public void paint(Graphics g){
    g.drawString("Hello world !", 10, 10);
  }

  public void stop(){
    System.out.println("STOP");
  }

  public void destroy(){
    System.out.println("DESTROY");
  }
}

My jnlp is :

<?xml version="1.0" encoding="utf-8"?>
      <jnlp
        spec="1.0+"
        codebase="http://ariane/"
        href="example.jnlp">
        <information>
          <title>Example</title>
          <vendor>Atos Origin</vendor>
          <homepage href="http://ariane/"/>
          <icon href="http://ariane/IMAGES/pills.gif"/>
          <description kind="short">Hello World</description>
        </information>
        <security>
            <no-permissions/>
        </security>
        <resources>
          <j2se version="1.3" initial-heap-size="16m" max-heap-size="96m"/>
          <jar href="http://ariane/CLASSES/example.jar" main="true"
download="eager"/>
        </resources>
        <applet-desc
        	name = "Hello world"
        	main-class = "example.HelloWorld"
        	width = "400"
        	height = "400" >
        </applet-desc>
      </jnlp>


When i quit the applet, the methods destroy neither stop are not called.
(Review ID: 133826) 
======================================================================

Comments
PUBLIC COMMENTS This is a duplicate of bug #4122085.
31-08-2004