Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: javac.err.method.too.long



At 15:21 -0800 29/10/02, Jim Cushing <email@hidden> wrote:

I am a little confused about that error message mentioned in the
subject. Why is a method length limited to 64KB? I tried it also on an
Ultra 1 from Sun and that box has 64Bit so I don't understand that
limitation...

Egads! I'd hate to have to do maintenance on that method! I once had to debug a 1000 line method written by another programmer. It was a nightmare, and that compiled to well under 64K. I can only imagine how long a 64K method would, and how difficult it would be to follow and debug.

Think code generators and the like. I did actually hit the 64K method limit recently. It wasn't a mass of logic but all very regular, just linear initialisation code to lay out a large GUI (with a few trimmings like tool tip text and data bindings). Lots of it but completely trivial to maintain.

-Rolf
--
Rolf Howarth, Square Box Systems Ltd, Stratford-upon-Avon UK.
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.