This is a terrible limit. Code generation is necessary for all sorts of things e.g. parsers. Having to hack in code to the code generation just to split methods to get around this limit is ridiculous.<p>I had to literally abandon months of work on one project which was generating simulation code to Java. I was generating millions of lines of code, so splitting up the method would require a main method which would call all those split methods, and then that method would get too long, etc. It all just wasn't feasible, so now I just generate C.<p><a href="http://www.databasesandlife.com/java-method-64k-limit/" rel="nofollow">http://www.databasesandlife.com/java-method-64k-limit/</a>