Maximum size of a method in Java 7 and 8
问题 I know that a method cannot be larger than 64 KB with Java. The limitation causes us problems with generated code from a JavaCC grammar. We had problems with Java 6 and were able to fix this by changing the grammar. Has the limit been changed for Java 7 or is it planned for Java 8? Just to make it clear. I don\'t need a method larger than 64 KB by myself. But I wrote a grammar which compiles to a very large method. 回答1: According to JVMS7 : The fact that end_pc is exclusive is a historical