On 29/02/2012 04:51, Ken Cheung wrote:
> Because both of them are performing the same function. However, one
> of them (AprEndpoint.java:1057:1058) you typecast "SocketWrapper" to
> "Long" and check if "socket.async" is true while another one
> (JloEndpoint.java) you just typecast it to "Socket" an
> 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 typec
Because both of them are performing the same function. However, one of them
(AprEndpoint.java:1057:1058) 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. The check
On 28/02/2012 16:40, Ken Cheung wrote:
> I observed some code clones in Tomcat and found inconsistent code.
> Could anyone explain why this is not a bug?
Yes.
Perhaps you'd like to explain your basis for assuming it is a bug.
Mark