Skip to content

Instantly share code, notes, and snippets.

@laurentpetit
Created December 18, 2014 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laurentpetit/cc86d7ed873fb1479f78 to your computer and use it in GitHub Desktop.
Save laurentpetit/cc86d7ed873fb1479f78 to your computer and use it in GitHub Desktop.
Here's what we get with a modified version of Clojure including stack traces:
at clojure.lang.RestFn.invoke(RestFn.java:408)
at ccw.core.factories$handler_factory.invoke(factories.clj:10)
at clojure.lang.Var.invoke(Var.java:379)
at ccw.util.GenericExecutableExtension$1.run(GenericExecutableExtension.java:28)
at ccw.util.osgi.ClojureOSGi.withBundle(ClojureOSGi.java:71)
... 47 more
Caused by: java.lang.RuntimeException: exception while compiling classccw/eclipse$goto_editor_line
at clojure.lang.Compiler$ObjExpr.compile(Compiler.java:4453)
at clojure.lang.Compiler$FnExpr.parse(Compiler.java:3904)
at clojure.lang.Compiler.analyzeSeq(Compiler.java:6646)
... 122 more
Caused by: java.lang.RuntimeException: Method code too large: 241763!
at clojure.asm.MethodWriter.getSize(MethodWriter.java:1872)
at clojure.asm.ClassWriter.toByteArray(ClassWriter.java:775)
at clojure.lang.Compiler$ObjExpr.compile(Compiler.java:4451)
So it is trying to compile eclipse/goto-editor-line, which is the following function, and it counts 241 763 bytes in a method ! ? !
(defn goto-editor-line
"Given an Editor object, goto the specified line.
If line is -1, goto last line"
[editor line]
(ccw.ClojureCore/gotoEditorLine editor line))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment