camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
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 GMT
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 {



Mime
View raw message