Wrapping the huge sets into vars makes it work:
https://gist.github.com/3369040

The first literal set works if it contains just the first 3282 elements (
https://gist.github.com/3369092). One element more and it does not work
anymore (https://gist.github.com/3369101) - throwing a "CompilerException
java.lang.ClassFormatError: Invalid method Code length 65542 in class file
user$eval138, compiling:(NO_SOURCE_PATH:0)"

Maybe this is a JVM issue (
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4262078), anyway it is
weird that its occurrence depends on whether we are defining a var or not.

On Thu, Aug 16, 2012 at 11:32 AM, Roberto Mannai <roberm...@gmail.com>wrote:

> There is a "return" which splits # and { on the second set definition,
> translating it into a map definition:
>
> #
> {10710,
>
> After correcting it, I get a new curious error:
> *Unknown constant tag 44 in class file user$eval1976*
> * [Thrown class java.lang.ClassFormatError]*
>
>
> On Thu, Aug 16, 2012 at 9:44 AM, Renat Yuldashev <rena...@gmail.com>wrote:
>
>> See attached file(ros4.clj).
>> Can not run the file on windows, clojure 1.4
>> Don't know if it is a bug.
>> Seems like standard parser can not handle long lines, because it works
>> perfectly for smaller file(see the second file).
>>
>> error output:
>>
>> Exception in thread "main" clojure.lang.LispReader$ReaderException:
>> java.lang.RuntimeException: Map literal must contain an even number of
>> forms, compiling:(U:\ros4_t.clj:16)
>>  at clojure.lang.Compiler.load(Compiler.java:6958)
>> at clojure.lang.Compiler.loadFile(Compiler.java:6912)
>> at clojure.main$load_script.invoke(main.clj:283)
>>  at clojure.main$script_opt.invoke(main.clj:343)
>> at clojure.main$main.doInvoke(main.clj:427)
>> at clojure.lang.RestFn.invoke(RestFn.java:408)
>>  at clojure.lang.Var.invoke(Var.java:415)
>> at clojure.lang.AFn.applyToHelper(AFn.java:161)
>> at clojure.lang.Var.applyTo(Var.java:532)
>>  at clojure.main.main(main.java:37)
>> Caused by: clojure.lang.LispReader$ReaderException:
>> java.lang.RuntimeException: Map literal must contain an even number of forms
>>  at clojure.lang.LispReader.read(LispReader.java:215)
>> at clojure.lang.LispReader$CtorReader.invoke(LispReader.java:1148)
>>  at clojure.lang.LispReader$DispatchReader.invoke(LispReader.java:611)
>> at clojure.lang.LispReader.readDelimitedList(LispReader.java:1126)
>>  at clojure.lang.LispReader$ListReader.invoke(LispReader.java:962)
>> at clojure.lang.LispReader.read(LispReader.java:180)
>>  at clojure.lang.Compiler.load(Compiler.java:6949)
>> ... 9 more
>> Caused by: java.lang.RuntimeException: Map literal must contain an even
>> number of forms
>>  at clojure.lang.Util.runtimeException(Util.java:170)
>> at clojure.lang.LispReader$MapReader.invoke(LispReader.java:1071)
>>  at clojure.lang.LispReader.read(LispReader.java:180)
>> ... 15 more
>>
>>  --
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clojure@googlegroups.com
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to