Mischiefblog
I make apps for other people

Posts made on Tuesday, October 4th, 2005

Large Branch Compilation

Posted by Chris Jones
On October 4th, 2005 at 12:45

Permalink | Trackback | Links In |

Comments Off on Large Branch Compilation
Posted in Java, Tech

When developing exceptionally large JSP pages (for work–don’t ask, ’cause it’s too embarassing), you may find yourself limited by the (< JDK 1.4) 32KB branch size. Java methods shouldn’t be compiled to more than 32KB, and aren’t in most cases. However, when working with JSPs that invoke a lot of tags (such as security or logic), you may find the page’s service method (_jspService()) exceeds the default branch size.

To enable Java large branch compilation, set the following define (system property, or “-D” on the command line) when invoking your application server:
com.sun.tools.javac.main.largebranch=true

To find your compiled JSP pages in WSAD, look in the WORKSPACE_HOME\WORKSPACE_NAME\.metadata\.plugins\com.ibm.etools.webtools\Jsp2Java\PROJECT_NAME\WebContent directory.