Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Machine > Re: 65535 bytes...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 5 Topic 754 of 816
Post > Topic >>

Re: 65535 bytes method code limit?

by "Chris Uppal" <chris.uppal@[EMAIL PROTECTED] > Mar 1, 2007 at 10:04 PM

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
 




 5 Posts in Topic:
65535 bytes method code limit?
"aloha.kakuikanu&quo  2007-03-01 13:24:13 
Re: 65535 bytes method code limit?
"Chris Uppal" &  2007-03-01 22:04:29 
Re: 65535 bytes method code limit?
Florian Weimer <fw@[EM  2007-03-02 13:45:31 
Re: 65535 bytes method code limit?
Roedy Green <see_websi  2007-05-25 08:35:05 
Re: 65535 bytes method code limit?
glen herrmannsfeldt <g  2007-05-31 13:48:57 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 17:39:14 CDT 2008.