You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2010/06/03 21:38:35 UTC
svn commit: r951128 -
/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java
Author: janstey
Date: Thu Jun 3 19:38:35 2010
New Revision: 951128
URL: http://svn.apache.org/viewvc?rev=951128&view=rev
Log:
add note about the compiler specific syntax
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=951128&r1=951127&r2=951128&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 Thu Jun 3 19:38:35 2010
@@ -216,7 +216,7 @@ public abstract class ProcessorDefinitio
}
addInterceptStrategies(routeContext, channel, this.getInterceptStrategies());
- // must do this ugly cast to avoid compiler error on HP-UX
+ // must do this ugly cast to avoid compiler error on AIX/HP-UX
ProcessorDefinition defn = (ProcessorDefinition) this;
// set the child before init the channel
@@ -994,10 +994,12 @@ public abstract class ProcessorDefinitio
* @return the builder
*/
public ProcessorDefinition end() {
+ // must do this ugly cast to avoid compiler error on AIX/HP-UX
+ ProcessorDefinition defn = (ProcessorDefinition) this;
+
// when using doTry .. doCatch .. doFinally we should always
// end the try definition to avoid having to use 2 x end() in the route
// this is counter intuitive for end users
- ProcessorDefinition defn = (ProcessorDefinition) this;
if (defn instanceof TryDefinition) {
popBlock();
}