From 3557756bc47f25d535f4a51290f79c03f0ea660a Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 12 Dec 2007 21:02:01 +0000 Subject: [PATCH] [ 1732480 ] Improve callout recursive call detection Restoring is/set CalloutActive methods - recursive detection can coexist with old method for other purposes --- base/src/org/compiere/model/CalloutEngine.java | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/base/src/org/compiere/model/CalloutEngine.java b/base/src/org/compiere/model/CalloutEngine.java index 11e5667a18..730e787b9a 100644 --- a/base/src/org/compiere/model/CalloutEngine.java +++ b/base/src/org/compiere/model/CalloutEngine.java @@ -165,28 +165,24 @@ public class CalloutEngine implements Callout /*************************************************************************/ - //private static boolean s_calloutActive = false; + private static boolean s_calloutActive = false; /** * Is Callout Active. - * Deprecated, callout no longer need to call this method to avoid recursive invocation. - * @deprecated * @return true if active */ protected static boolean isCalloutActive() { - return false; + return s_calloutActive; } // isCalloutActive /** * Set Callout (in)active. - * Deprecated, callout no longer need to call this method to avoid recursive invocation. - * @deprecated * @param active active */ protected static void setCalloutActive (boolean active) { - ; //no op + s_calloutActive = active; } // setCalloutActive /**