Author: hadrian
Date: Thu Jun 26 18:12:21 2008
New Revision: 672066

URL: http://svn.apache.org/viewvc?rev=672066&view=rev
Log:
CAMEL-481. Fix for compilef failure on AIX.  Patch applied with thanks to Jon 
for discovering and fixing it at the very last minute!

Modified:
    
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java

Modified: 
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java
URL: 
http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java?rev=672066&r1=672065&r2=672066&view=diff
==============================================================================
--- 
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java
 (original)
+++ 
activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java
 Thu Jun 26 18:12:21 2008
@@ -903,9 +903,10 @@
 
     public Type proceed() {
         ProceedType proceed = null;
+        ProcessorType currentProcessor = this;
 
-        if (this instanceof InterceptType) {
-            proceed = ((InterceptType) this).getProceed();
+        if (currentProcessor instanceof InterceptType) {
+            proceed = ((InterceptType) currentProcessor).getProceed();
             LOG.info("proceed() is the implied and hence not needed for an 
intercept()");
         }
         if (proceed == null) {
@@ -928,10 +929,12 @@
     }
 
     public Type stop() {
-        if (this instanceof InterceptType) {
-            ((InterceptType) this).stopIntercept();
+        ProcessorType currentProcessor = this;
+
+        if (currentProcessor instanceof InterceptType) {
+            ((InterceptType) currentProcessor).stopIntercept();
         } else {
-               ProcessorType<?> node;
+               ProcessorType node;
             for (node = parent; node != null; node = node.getParent()) {
                 if (node instanceof InterceptType) {
                     ((InterceptType) node).stopIntercept();


Reply via email to