| Re: 65535 bytes method code limit? |
|
 |
|
 |
|
 |
|
 |
Group: comp.lang.java.machine · Group Profile
Author: Chris UppalChris Uppal Date: Mar 1, 2007 14:04
aloha.kakuikanu wrote:
> "The code of method mTokens() is exceeding the 65535 bytes limit"
>
> The method is antlr generated, so I struggle to find any workaround.
> Perhaps I'm missing some magic JVM parameter setting? Aren't 16 bit
> integers relics of the past century?
It's a hard limit in Java, I'm afraid. No way around it (with current versions
of Java) because it's a limit of the classfile format itself, rather than a
limit of the Java compiler, or of the JVM.
(Actually, the limit in the classfile is rather more complicated than that, and
you can, structurally, have more than 64K bytes of bytecode per method, but
there are various auxiliary structures in the classfile which do have a 64K
limits.)
-- chris
|