Name: bsC130419 Date: 07/27/2001
java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)
error message:
An exception has occurred in the compiler (1.4.0-beta). Please file a bug at
the Java Developer Connection (http://java.sun.com/cgi-bin/bugreport.cgi)
after checking the Bug Parade for duplicates. Include your program and the
following diagnostic in your report. Thank you.
java.lang.StackOverflowError
at com.sun.tools.javac.v8.code.ClassWriter.writeFields
(ClassWriter.java:687)
src code:
public class Test1 extends JApplet{
JTextField a0=new JTextField();
a1
a2
...
...
a10000
}
I have try another method
public class Test2 extends JApplet{
JTextField a0;
a1
a2
...
...
a10000
public void init () {
a1=new JTextField();
a2
...
...
a10000
}
with no problems..
Test1 could make compile stack overflow
Test2 don't make any error because initialize not put on the "field"
Test2 put initialize action after the class have already constructed..
So I think the initialize action could not process huge operation
(Review ID: 128923)
======================================================================
- duplicates
-
JDK-4498624 crashes out when no. of methods defined exceeds an internal threshold
-
- Closed
-