Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

The code for the static initializer is exceeding the 65535 bytes limit

807606May 10 2007 — edited May 13 2007
Hi,

I'm working on a largish project, where we use an enum to store our string identifiers, which are used in many places (UI, logging etc.) to indentify a translateable string. This is very convenient, as the compiler checks that the identifier exists, and since we only store the id , we can translate everything at display time (eg. log messages).

We just ran into a problem (see the subject) when we tried to add a new identifier into the enum. We only have a few thousand identifiers, and the project is nowhere near finished. Is there a way around it?

An unoptimal solution would be to split the enum to several parts, or to use a file based approach, but we'd rather avoid them if possible.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 9 2007
Added on May 10 2007
19 comments
2,050 views