Return-Path: Delivered-To: apmail-camel-commits-archive@www.apache.org Received: (qmail 3697 invoked from network); 20 Oct 2009 05:23:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Oct 2009 05:23:47 -0000 Received: (qmail 93716 invoked by uid 500); 20 Oct 2009 05:23:47 -0000 Delivered-To: apmail-camel-commits-archive@camel.apache.org Received: (qmail 93668 invoked by uid 500); 20 Oct 2009 05:23:46 -0000 Mailing-List: contact commits-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list commits@camel.apache.org Received: (qmail 93659 invoked by uid 99); 20 Oct 2009 05:23:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Oct 2009 05:23:46 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Oct 2009 05:23:44 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id A648123888D4; Tue, 20 Oct 2009 05:23:23 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r826956 - /camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java Date: Tue, 20 Oct 2009 05:23:23 -0000 To: commits@camel.apache.org From: davsclaus@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091020052323.A648123888D4@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: davsclaus Date: Tue Oct 20 05:23:23 2009 New Revision: 826956 URL: http://svn.apache.org/viewvc?rev=826956&view=rev Log: Fixed compiler error on HP-UX Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java?rev=826956&r1=826955&r2=826956&view=diff ============================================================================== --- camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java (original) +++ camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java Tue Oct 20 05:23:23 2009 @@ -171,8 +171,10 @@ // init the channel channel.initChannel(this, routeContext); + // must do this ugly cast to avoid compiler error on HP-UX + ProcessorDefinition defn = (ProcessorDefinition) this; // set the error handler, must be done after init as we can set the error handler as first in the chain - if (this instanceof TryDefinition || this instanceof CatchDefinition || this instanceof FinallyDefinition) { + if (defn instanceof TryDefinition || defn instanceof CatchDefinition || defn instanceof FinallyDefinition) { // do not use error handler for try .. catch .. finally blocks as it will handle errors itself return channel; } else {