We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › Java compiler ´semantic error´
Page Index Toggle Pages: 1
Java compiler ´semantic error´ (Read 794 times)
Java compiler ´semantic error´
Feb 25th, 2006, 1:09am
 
Hi people, I don´t know if this is the right place to ask, but since this is not imo a bug and I didn´t find any more suitable place, I put it here...

I got a java compiler semantic error when trying to run a sketch containing quite large array of integers, concretely

C:/DOCUME~1/mc/LOCALS~1/Temp/build58023.tmp/Temporary_3825_5813.java:1:260:1:278
: Semantic Error: Method "void this();" in type "Temporary_3825_5813" produced a code attribute that exceeds the code limit of 65535 elements.

C:/DOCUME~1/mc/LOCALS~1/Temp/build58023.tmp/Temporary_3825_5813.java:1:296:9944:
98: Semantic Error: The type "Temporary_3825_5813" produced a constant pool that exceeded the limit of 65535 elements.

I´ve already stripped the array because at first java complained of shortage of heap space and I don´t need so much elements anyway, well, for the time being....

Google didn´t find anything useable, in fact a couple of links were directed on processing forums, but since they were quite old, I suppose, they didnt work

I use 0103 BETA.

Thanx for help
Re: Java compiler ´semantic error´
Reply #1 - Feb 25th, 2006, 4:51pm
 
that means you're making too many local variables for the class, whether array elements or whatever.

there's never really a good reason to run up against this boundary, you should read the data from a file instead, use loadBytes() or loadStrings() or something like that, depending on the type of data you need.
Re: Java compiler ´semantic error´
Reply #2 - Feb 25th, 2006, 5:02pm
 
yeah, you're right, i've already figured out,
it is a java source file constraint
and a source file is not a data storage so it is maybe more 'correct' to read the data on heap anyway, hm
Page Index Toggle Pages: 1