Name: gm110360 Date: 02/19/2004
FULL PRODUCT VERSION :
Java(TM) Plug-in: Version 1.4.2
Using JRE version 1.4.2 Java HotSpot(TM) Client VM
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows 2000 [Version 5.00.2195]
EXTRA RELEVANT SYSTEM CONFIGURATION :
Internet Explorer 6.0sp1
A DESCRIPTION OF THE PROBLEM :
When calling a method on an applet from javascript, if an exception is thrown with a message longer than 1051characters then Internet Explorer will immediately crash without displaying any message.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1) Load the included HTML page applet.html.
2) Click on the javascript button marked '1050'
3) Click on the javascript button marked '1052'
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Clicking on both buttons should show a javascript dialog box saying a runtime error has occured.
ACTUAL -
The browser crashes after clicking the javascript button marked '1052'
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
--- BEGIN TestApplet.java ---
public class TestApplet extends java.applet.Applet
{
public void test(int len) throws Exception
{
StringBuffer msg = new StringBuffer();
msg.setLength(len);
throw new Exception(msg.toString());
}
}
--- END TestApplet.java ---
--- BEGIN applet.html ---
<html>
<body>
<OBJECT ID="TestApplet" classid="clsid:CAFEEFAC-0014-0002-0000-ABCDEFFEDCBA"
width="100" height="100" align="baseline"
codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0">
<PARAM name="code" value="TestApplet">
<PARAM name="codebase" value=".">
<PARAM name="type" value="application/x-java-applet;version=1.4">
<PARAM name="scriptable" value="true">
</OBJECT>
<p>
<input type="button" value="1050" onclick="document.getElementById('TestApplet').test(1050);">
<p>
<input type="button" value="1052" onclick="document.getElementById('TestApplet').test(1052);">
</body>
</html>
--- END applet.html ---
---------- END SOURCE ----------
(Incident Review ID: 229922)
======================================================================