Netty examples - code problems...

"이희승 (Trustin Lee)" trustin at gmail.com
Mon Jun 21 03:17:54 EDT 2010


I don't think the examples are broken.  What compiler / IDE are you
using?  With SUN JDK 1.5/1.6 and Eclipse incremental compiler in
Galileo, everything seems OK.

HTH,
Trustin

On 06/18/2010 06:28 PM, shedseven wrote:
> 
> Hi There.
> 
> I'm new to Netty and I'm working through the example code to get a feel for
> things, but I've hit a problem right at the start with the "echo" example.
> 
> Both EchoClient and EchoServer classes have one line highlighted as
> erroneous in Eclipse something like...
> 
>         // Set up the pipeline factory.
>         bootstrap.setPipelineFactory(new ChannelPipelineFactory() {
>             public ChannelPipeline getPipeline() throws Exception {
>                 return Channels.pipeline(
>                         new EchoClientHandler(firstMessageSize));
>             }
>         });
> 
> .. where the ".pipeline" has the squiggly red error underlining.
> 
> Looking at the class hierarchies, it appears that "EchoClientHandler" and
> "ChannelPipeline " are not related, so the example code IS broken?
> 
> 
> I find this hard to believe though - no-one else seems to be reporting
> problems and you don't expect to find errors in code examples...
> 
> Am I just bei ng stupid, am I missing something here, can anyone shed any
> light on what's going on...?
> 
> advTHANKSance.

-- 
what we call human nature in actuality is human habit
http://gleamynode.net/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 293 bytes
Desc: OpenPGP digital signature
Url : http://lists.jboss.org/pipermail/netty-users/attachments/20100621/7a9588a3/attachment.bin 


More information about the netty-users mailing list