JDK-4071527 : javac generates StackOverflowException
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 1.1.3
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris_2.5.1
  • CPU: sparc
  • Submitted: 1997-08-13
  • Updated: 1999-01-15
  • Resolved: 1999-01-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.2.0 1.2betaFixed
Related Reports
Relates :  
Description
attached file doesn't compile

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: generic FIXED IN: 1.2beta INTEGRATED IN: 1.2beta
14-06-2004

PUBLIC COMMENTS The compiler exits ungracefully when stack space is exhausted. The compiler can run out of stack space when compiling extremely lengthy or deeply-nested expressions.
10-06-2004

EVALUATION Verified in 1.1.3. Problem is deep recursion due to a lengthy left-recursive expressoin tree. Arguably, an iterative algorithm might be used to save stack space, but the real problem here is the ungraceful recovery. william.maddox@Eng 1997-08-13
13-08-1997

WORK AROUND Use -J-oss<stacksize> command line option to increase Java stack size. william.maddox@Eng 1997-08-13
13-08-1997

SUGGESTED FIX Catch 'StackOverflowError' in Main the same as we do for 'OutOfMemoryError' in 1.2beta. william.maddox@Eng 1997-08-13
13-08-1997