From: "Howard Lee" <[EMAIL PROTECTED]>
> Hi guys,
> I'm using Tomcat, and one of my JSPs got pretty big, and I'm getting this
> error message. "Code of a method longer than 65535 bytes" Is there any way
> to get around to it? Is there a way to increase this limit? Thanks.
This limit is imposed by the Java VM Specification, because the .class file
format uses 16-bit numbers for code indices in the exception tables, line
number tables and local variable tables. Some older VMs failed to enforce
this rule (you could get away with big methods having no debug info or
exceptions), but current ones don't.
You should try to make the generated method shorter, by moving big chunks of
Java into new methods, or some other trick.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets