Hey Sean, Your attempt worked because in Netty 4.0.0.Alpha8 AbstractBootstrap<https://github.com/netty/netty/commit/23438de66f82c72720b092c539bb430995722d2d#transport/src/main/java/io/netty/bootstrap/AbstractBootstrap.java> was still public.. Try it out with 4.0.0.Beta2..
Thanks! On Wednesday, March 13, 2013 4:15:51 AM UTC+2, Sean Corfield wrote: > > On Tue, Mar 12, 2013 at 5:46 PM, <shlomi...@gmail.com <javascript:>> > wrote: > > In my case i am trying to get clojure working with netty 4, here is the > > code: > > > > (def #^AbstractBootstrap b (ServerBootstrap.)) > > (.channel ^AbstractBootstrap b ^Class > > io.netty.channel.socket.nio.NioServerSocketChannel) > > > > which returns the error: > > 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) > > at clojure.lang.Reflector.invokeMatchingMethod (Reflector.java:88) > > I can't reproduce this (with Clojure 1.5.1, Netty 4.0.0.Alpha8): > > user=> (set! *warn-on-reflection* true) > true > user=> (import '(io.netty.bootstrap AbstractBootstrap ServerBootstrap)) > io.netty.bootstrap.ServerBootstrap > user=> (def b (ServerBootstrap.)) > #'user/b > user=> (.channel ^AbstractBootstrap b ^Class > io.netty.channel.socket.nio.NioServerSocketChannel) > #<ServerBootstrap ServerBootstrap(factory: NioServerSocketChannel.class)> > user=> *clojure-version* > {:major 1, :minor 5, :incremental 1, :qualifier nil} > user=> > > > Can you provide more detail? > -- > Sean A Corfield -- (904) 302-SEAN > An Architect's View -- http://corfield.org/ > World Singles, LLC. -- http://worldsingles.com/ > > "Perfection is the enemy of the good." > -- Gustave Flaubert, French realist novelist (1821-1880) > -- -- 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.