How do I resolve "code too large for try statement" errors?
Question:
When I compile I get errors such as the following:
C:\2008_gui\OBJECT\MAIN_MENU.java:12810: code too large for try statement
} catch (CallOverflowException ex$0){ throw new WrapperException (ex$0); }
^
What do I need to do to correct this error?
Answer:
This error is due to a limit on the number of source lines the Java compiler allows in a single block.
Compile with -sns=1000 to set the maximum at 1000 lines per COBOL paragraph. If that doesn't work then try lower values. For best performance use the highest number that works. And optimally, only use the -sns option when compiling programs that require it.
Authored
by: Veryant Support
This question has been viewed 23071 times so far.
Click
Here to View all the questions in isCOBOL General
category.
File Attachments
There are no attachment file(s) related to this question.
User Comments
There are no user comments for this question. Be the first to post a comment. Click Here