Hang or crash when resizing applet Frame

(Apple problem # 3760018)

Summary:
Resizing a Frame popped up by a Java applet results in the browser hanging or crashing.


Steps to Reproduce:
Run the applet on this page.


Example:
Run this applet in Safari.  A Frame pops up.
Keep resizing the Frame using the grow box until Safari hangs or crashes.


Expected Results:
No hang or crash.
 

Actual Results:
Safari hangs invariably within a few resizes of the Frame. 
 

Workaround:
None.
 

Isolation:
This behavior was observed with the following configuration: G4 400 MHz, 192 MB RAM, Mac OS X 10.3.5, Java 1.4.2_05.  According to one report this problem does not occur on a more powerful configuration (733 MHz, 640 MB RAM).


Source code:

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

public class brittle_frame extends Applet {

public void init()
{
    Frame frame = new java.awt.Frame("A Frame");
    frame.setSize(200, 200);
    frame.validate();
    frame.setVisible(true);
}

public void paint(Graphics g)
{
    g.drawString("A simple frame with a label should pop up", 10 , 20);
}
} // END OF Class brittle_frame


    If you have any insights, workarounds or comments about this test page please contact Mickey Segal.  A listing of  many Java resources is at this link.