It is almost certain that the method you want to call is inherited from a public ancestor. Annotate the call with that ancestor and it will work.
On Wednesday, March 13, 2013 10:23:31 AM UTC+1, shlomi...@gmail.com wrote: > > here is the full exception when compiling: > > Exception in thread "main" java.lang.IllegalArgumentException: Can't call > public method of non-public class: public > io.netty.bootstrap.AbstractBootstrap > io.netty.bootstrap.AbstractBootstrap.channel(java.lang.Class), > compiling:(netty.clj:31:1) > at clojure.lang.Compiler$InstanceMethodExpr.eval(Compiler.java:1453) > at clojure.lang.Compiler.compile1(Compiler.java:7153) > at clojure.lang.Compiler.compile(Compiler.java:7219) > > Caused by: java.lang.IllegalArgumentException: Can't call public method of > non-public class: public io.netty.bootstrap.AbstractBootstrap > io.netty.bootstrap.AbstractBootstrap.channel(java.lang.Class) > > > On Wednesday, March 13, 2013 11:21:40 AM UTC+2, shlomi...@gmail.com wrote: >> >> yes you are right, it is a compile-time error.. >> >> On Wednesday, March 13, 2013 11:19:25 AM UTC+2, Marko Topolnik wrote: >>> >>> When you annotate, is it a runtime or a compile-time error? I would be >>> very surprised if it happened at runtime (when the function is actuall >>> called). >>> >>> On Wednesday, March 13, 2013 1:26:00 AM UTC+1, Shlomi Vaknin wrote: >>>> >>>> hey, I have a similar problem, even when i type annotate with clojure >>>> 1.5 i still get that error.. any suggestions? >>>> >>> -- -- 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 unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.