-
Bug
-
Resolution: Won't Fix
-
P4
-
None
-
1.2.1
-
x86
-
windows_nt
Name: rlT66838 Date: 06/07/99
The following code when compiled under javac.exe works just
fine, but when its compiled using javac-ea.exe and then run the
JVM (java.exe) gives an error.
public class test
{
static final int MAX_CONNECTIONS = 256;
static int TotalConnections = 0;
public static void main(String args[])
{
Start();
}
public static void Start()
{
System.out.println("Server on-line");
while (true)
{
try
{
while (ModifyTotalConnections(0) == MAX_CONNECTIONS);// Thread.sleep(10);
}
catch (Exception e)
{
System.out.println("ouch");
}
for (int i = 0; i < MAX_CONNECTIONS; i++)
{
}
}
}
static synchronized int ModifyTotalConnections(int value)
{
TotalConnections = TotalConnections + value;
return TotalConnections;
}
}
The following error message is recieved:
A nonfatal internal JIT (3.00.078(x)) error 'Structured Exception(c0000005)' has
occurred in :
'test.Start ()V': Interpreting method.
Please report this error in detail to http://java.sun.com/cgi-bin/bugreport.cg
i
(Review ID: 84044)
======================================================================