You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ftpserver-dev@incubator.apache.org by KwangYul Seo <kw...@gmail.com> on 2005/11/17 03:11:53 UTC

A small bug

Hi,

While I read the source code, I found a little bug in FtpletEnum class.

public boolean equals(Object obj) {
if(obj instanceof Ftplet) {
return m_type == ((FtpletEnum)obj).m_type;
}
return false;
}

If obj is instanceof Ftplet, it can't be casted to FtpletEnum because they
are different interfaces. I think this is a mistake.

Thanks,
Kwang Yul Seo

Re: A small bug

Posted by Rana Bhattacharyya <ra...@yahoo.com>.
Thank you very much!! Fixed the bug.

Thanks,
Rana Bhattacharyya

--- KwangYul Seo <kw...@gmail.com> wrote:

> Hi,
> 
> While I read the source code, I found a little bug
> in FtpletEnum class.
> 
> public boolean equals(Object obj) {
> if(obj instanceof Ftplet) {
> return m_type == ((FtpletEnum)obj).m_type;
> }
> return false;
> }
> 
> If obj is instanceof Ftplet, it can't be casted to
> FtpletEnum because they
> are different interfaces. I think this is a mistake.
> 
> Thanks,
> Kwang Yul Seo
> 



	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com