Java Mailing List Archive

http://www.gg3721.com/

Home » user.groovy »

Re: [groovy-user] 64K limit on strings -- Caught: java.lang.ClassFormatError:
Unknown constant tag 84 in class file test

Jochen Theodorou

2008-08-28

Replies: Find Java Web Hosting

Author LoginPost Reply
Anders Viklund schrieb:
> Hi,
>
> I believe this problem should be fixed in version 1.6?
> http://jira.codehaus.org/browse/GROOVY-2382
>
> I just ran into this problem in version 1.5.6 and 1.6-beta-1.
>
> There is a risk that strings can get bigger than 64k in the current
> solution I have.

it's not fixed yet, in Java you would get a compilation error, since the
spec says that constant strings put together by + become one string
automatically. In Groovy we can make this different.. but as I said, the
bug is not fixed yet

> How can I get around this problem?

create smaller string and put them together by +, give the date to the
script/class from a file or through a method/property.

bye blackdrag

--
Jochen "blackdrag" Theodorou
The Groovy Project Tech Lead (http://groovy.codehaus.org)
http://blackdragsview.blogspot.com/
http://www.g2one.com/

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email


©2008 gg3721.com - Jax Systems, LLC, U.S.A.