You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by mb...@apache.org on 2007/01/10 23:50:39 UTC

svn commit: r495024 - /jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/util/ValueUtils.java

Author: mbenson
Date: Wed Jan 10 14:50:38 2007
New Revision: 495024

URL: http://svn.apache.org/viewvc?view=rev&rev=495024
Log:
[JXPATH-73] catch IndexOutOfBoundsException instead of subclass ArrayIOOBE

Modified:
    jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/util/ValueUtils.java

Modified: jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/util/ValueUtils.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/util/ValueUtils.java?view=diff&rev=495024&r1=495023&r2=495024
==============================================================================
--- jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/util/ValueUtils.java (original)
+++ jakarta/commons/proper/jxpath/trunk/src/java/org/apache/commons/jxpath/util/ValueUtils.java Wed Jan 10 14:50:38 2007
@@ -421,7 +421,7 @@
             catch (InvocationTargetException ex) {
                 Throwable t =
                     ((InvocationTargetException) ex).getTargetException();
-                if (t instanceof ArrayIndexOutOfBoundsException) {
+                if (t instanceof IndexOutOfBoundsException) {
                     return null;
                 }
                 



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org