summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRajith Muditha Attapattu <rajith@apache.org>2009-01-21 22:20:23 +0000
committerRajith Muditha Attapattu <rajith@apache.org>2009-01-21 22:20:23 +0000
commitac65e474c98e8ab4737dcae7a71d1599d46738a0 (patch)
treee529c2313c6e08a3ca9c3affad5c76dbde52b5ac
parent35c504c10c6f5ae94216a4173c035720acec297e (diff)
downloadqpid-python-ac65e474c98e8ab4737dcae7a71d1599d46738a0.tar.gz
This is related to QPID-1608
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@736447 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--java/client/src/main/java/org/apache/qpid/jms/FailoverPolicy.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/client/src/main/java/org/apache/qpid/jms/FailoverPolicy.java b/java/client/src/main/java/org/apache/qpid/jms/FailoverPolicy.java
index 8e3ccc3b02..4186706ade 100644
--- a/java/client/src/main/java/org/apache/qpid/jms/FailoverPolicy.java
+++ b/java/client/src/main/java/org/apache/qpid/jms/FailoverPolicy.java
@@ -272,7 +272,7 @@ public class FailoverPolicy
public FailoverMethod getCurrentMethod()
{
- if ((_currentMethod >= 0) && (_currentMethod < (_methods.length - 1)))
+ if ((_currentMethod >= 0) && (_currentMethod < (_methods.length)))
{
return _methods[_currentMethod];
}