Note that there are some explanatory texts on larger screens.

plurals
  1. POIllegalAccessError and proxy
    text
    copied!<p>I'm translating <a href="http://doc.trolltech.com/qtjambi-4.5.2_01/com/trolltech/qt/qtjambi-pathstroke-code.html" rel="nofollow noreferrer">this code</a> to Clojure. As you can see, I have to extend the class <code>ArthurFrame</code>, yet I'm getting an <code>IllegalAccessError</code> everytime I use <code>(proxy [ArthurFrame] [] ...)</code>. </p> <p>Any idea why? Here is the <a href="http://qt.gitorious.org/qt-jambi/qt-jambi/blobs/2131440f843e1a6d259d0fe3f2a3ed58157ef118/com/trolltech/demos/ArthurFrame.java" rel="nofollow noreferrer">class's source</a>.</p> <p>Thanks!</p> <p><B>EDIT:</B> <a href="http://pastebin.com/0Zna0MTq" rel="nofollow noreferrer">Here is the full error stack</a> for running (proxy [ArthurFrame] []) on the REPL.</p> <p><b>EDIT 2</b>: Actually it seems that even instantiating the class yields an error. Here is the output from <code>(ArthurFrame. wid)</code>:</p> <pre> tried to access class com.trolltech.demos.ArthurFrame from class user$eval__2205 [Thrown class java.lang.IllegalAccessError] Restarts: 0: [ABORT] Return to SLIME's top level. Backtrace: 0: user$eval__2205.invoke(NO_SOURCE_FILE:1) 1: clojure.lang.Compiler.eval(Compiler.java:4642) 2: clojure.core$eval__5254.invoke(core.clj:2031) 3: swank.commands.basic$eval_region__907.invoke(basic.clj:40) 4: swank.commands.basic$eval_region__907.invoke(basic.clj:31) 5: swank.commands.basic$eval__927$listener_eval__929.invoke(basic.clj:54) 6: clojure.lang.Var.invoke(Var.java:359) 7: user$eval__2202.invoke(NO_SOURCE_FILE) 8: clojure.lang.Compiler.eval(Compiler.java:4642) 9: clojure.core$eval__5254.invoke(core.clj:2031) 10: swank.core$eval_in_emacs_package__455.invoke(core.clj:59) 11: swank.core$eval_for_emacs__533.invoke(core.clj:128) 12: clojure.lang.Var.invoke(Var.java:367) 13: clojure.lang.AFn.applyToHelper(AFn.java:179) 14: clojure.lang.Var.applyTo(Var.java:476) 15: clojure.core$apply__4379.invoke(core.clj:434) 16: swank.core$eval_from_control__458.invoke(core.clj:66) 17: swank.core$eval_loop__461.invoke(core.clj:71) 18: swank.core$spawn_repl_thread__595$fn__627$fn__629.invoke(core.clj:183) 19: clojure.lang.AFn.applyToHelper(AFn.java:171) 20: clojure.lang.AFn.applyTo(AFn.java:164) 21: clojure.core$apply__4379.invoke(core.clj:434) 22: swank.core$spawn_repl_thread__595$fn__627.doInvoke(core.clj:180) 23: clojure.lang.RestFn.invoke(RestFn.java:402) 24: clojure.lang.AFn.run(AFn.java:37) 25: java.lang.Thread.run(Thread.java:619) </pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload