Title: How do I resolve "code too large for try statement" errors?
Question:

When I compile I get errors such as the following:

C:2008_guiOBJECTMAIN_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 on Wed, Sep 2nd, 2009 at 7:00 PM
This question has been viewed 16535 times so far.
Online URL: http://support.veryant.com/support/phpkb/question.php?ID=97

Powered by PHPKB Knowledge Base Software