> From: Ken Cheung [mailto:msrbugzi...@gmail.com] 
> Subject: Re: Inconsistency in AprEndpoint.java and JIoEndpoint.java

> you typecast "SocketWrapper" to "Long" and check if "socket.async"
> is true while another one (JloEndpoint.java) you just typecast it 
> to "Socket" and execute the same piece of codes.

If you think SocketWrapper<Long> is a type-cast, perhaps you need to do a bit 
more basic Java homework before telling people their code has bugs in it.  
(Hint: SocketWrapper<> is, as its name and syntax suggest, a generic that adds 
behavior while hiding - that is to say, wrapping - any specified type.)

> The checking of "socket.async" is missing here and therefore it could 
> be a bug.

So could not checking if it's Tuesday, but that makes about as much sense.  
(Hint: read the docs; check to see if the Jio connector can use asynchronous 
sockets.)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to