Return-Path: Delivered-To: apmail-mina-dev-archive@www.apache.org Received: (qmail 19202 invoked from network); 21 Sep 2009 12:02:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Sep 2009 12:02:38 -0000 Received: (qmail 82632 invoked by uid 500); 21 Sep 2009 12:02:38 -0000 Delivered-To: apmail-mina-dev-archive@mina.apache.org Received: (qmail 82543 invoked by uid 500); 21 Sep 2009 12:02:37 -0000 Mailing-List: contact dev-help@mina.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mina.apache.org Delivered-To: mailing list dev@mina.apache.org Received: (qmail 82533 invoked by uid 99); 21 Sep 2009 12:02:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Sep 2009 12:02:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Sep 2009 12:02:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 231E0234C044 for ; Mon, 21 Sep 2009 05:02:16 -0700 (PDT) Message-ID: <1539747692.1253534536124.JavaMail.jira@brutus> Date: Mon, 21 Sep 2009 05:02:16 -0700 (PDT) From: "Niklas Gustavsson (JIRA)" To: dev@mina.apache.org Subject: [jira] Closed: (FTPSERVER-318) Subclasses of FtpException ignore the Throwable parameter in their constructors In-Reply-To: <1677588778.1246672607162.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FTPSERVER-318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Niklas Gustavsson closed FTPSERVER-318. --------------------------------------- Resolution: Fixed Fixed in rev 817215. Also removed the ancient handling of the causing exception and deprecated the FtpException.getRootCause() method. > Subclasses of FtpException ignore the Throwable parameter in their constructors > ------------------------------------------------------------------------------- > > Key: FTPSERVER-318 > URL: https://issues.apache.org/jira/browse/FTPSERVER-318 > Project: FtpServer > Issue Type: Bug > Components: Core, Ftplets > Affects Versions: 1.0.2 > Reporter: Sai Pullabhotla > Assignee: Niklas Gustavsson > Priority: Minor > Fix For: 1.0.3, 1.1.0 > > > Currently there are two subclasses of FtpException - > 1) AuthenticationFailedException > 2) DataConnectionException > The constructors AuthenticationFailedException(String msg, Throwable th) and DataConnectionException(final String msg, final Throwable th) ignore (do not use) the second parameter, "th". The parameter "th" should be passed to the constructor of super class to have accurate stack trace. > Also, out of curiosity, why does the FtpException has a member variable named "throwable" for storing the cause instead of using the cause defined in java.lang.Throwable? Why were the printStackTrace methods overridden? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.