CAMEL-481. Fix for compilef failure on AIX.  Patch applied with thanks to Jon for discovering and fixing it at the very last minute!


git-svn-id: https://svn.apache.org/repos/asf/activemq/camel/trunk@672066 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java b/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java
index ca9d202..0463cdc 100644
--- a/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java
+++ b/camel-core/src/main/java/org/apache/camel/model/ProcessorType.java
@@ -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();