Static initializer exceeding 65535 bytes [message #668462] |
Thu, 05 May 2011 14:50  |
Eclipse User |
|
|
|
When I generate model code from a schema with a very large
enumeration, the code fails to compile, with the error "The code
for the static initializer is exceeding the 65535 bytes limit".
Searching for this error message leads to recommendations about
setting the GenPackage's "Initialize by Loading" property to "true",
and setting its "Literals Interface" property to "false". But those
properties already have those recommended values. Has anyone else
encountered this?
Thanks,
|
|
|
|
Re: Static initializer exceeding 65535 bytes [message #668692 is a reply to message #668534] |
Fri, 06 May 2011 15:01  |
Eclipse User |
|
|
|
Ed Merks wrote:
> If the enumeration is so large it can't be represented in Java, you
> could try ecore:enum="false". I've never seen an enum that large!
Thank you; the compile error goes away if I modify the schema by adding
'ecore:enum="false"'. Is there a way that I could do it without modifying
the schema, perhaps by doing something to the .ecore or .genmodel?
I am an EMF beginner, still at the "trying to do the tutorial but with my
own schema" stage.
Thanks,
|
|
|
Powered by
FUDForum. Page generated in 0.07346 seconds