commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r887798 - in /commons/proper/jelly/branches/MAVEN-2-BRANCH/jelly/src/java/org/apache/commons/jelly/expression: jexl/JexlExpression.java xpath/XPathExpression.java
Date Sun, 06 Dec 2009 23:36:29 GMT
Author: niallp
Date: Sun Dec  6 23:36:28 2009
New Revision: 887798

URL: http://svn.apache.org/viewvc?rev=887798&view=rev
Log:
JELLY-288 Remove use of JDK 1.5 methodss - note this move Jelly back to a minimum of JDK 1.4,
if compatibility needs to be restored back to JDK 1.3 this will need to be changed again.

Modified:
    commons/proper/jelly/branches/MAVEN-2-BRANCH/jelly/src/java/org/apache/commons/jelly/expression/jexl/JexlExpression.java
    commons/proper/jelly/branches/MAVEN-2-BRANCH/jelly/src/java/org/apache/commons/jelly/expression/xpath/XPathExpression.java

Modified: commons/proper/jelly/branches/MAVEN-2-BRANCH/jelly/src/java/org/apache/commons/jelly/expression/jexl/JexlExpression.java
URL: http://svn.apache.org/viewvc/commons/proper/jelly/branches/MAVEN-2-BRANCH/jelly/src/java/org/apache/commons/jelly/expression/jexl/JexlExpression.java?rev=887798&r1=887797&r2=887798&view=diff
==============================================================================
--- commons/proper/jelly/branches/MAVEN-2-BRANCH/jelly/src/java/org/apache/commons/jelly/expression/jexl/JexlExpression.java
(original)
+++ commons/proper/jelly/branches/MAVEN-2-BRANCH/jelly/src/java/org/apache/commons/jelly/expression/jexl/JexlExpression.java
Sun Dec  6 23:36:28 2009
@@ -85,7 +85,7 @@
         			throw (RuntimeException)e;
         		if (e instanceof IllegalStateException)
         			throw (IllegalStateException )e;
-        		throw new IllegalStateException(e.getMessage(), e);
+            	throw (IllegalStateException)new IllegalStateException (e.getMessage()).initCause(e);
         	}
         }
     }

Modified: commons/proper/jelly/branches/MAVEN-2-BRANCH/jelly/src/java/org/apache/commons/jelly/expression/xpath/XPathExpression.java
URL: http://svn.apache.org/viewvc/commons/proper/jelly/branches/MAVEN-2-BRANCH/jelly/src/java/org/apache/commons/jelly/expression/xpath/XPathExpression.java?rev=887798&r1=887797&r2=887798&view=diff
==============================================================================
--- commons/proper/jelly/branches/MAVEN-2-BRANCH/jelly/src/java/org/apache/commons/jelly/expression/xpath/XPathExpression.java
(original)
+++ commons/proper/jelly/branches/MAVEN-2-BRANCH/jelly/src/java/org/apache/commons/jelly/expression/xpath/XPathExpression.java
Sun Dec  6 23:36:28 2009
@@ -94,7 +94,7 @@
             if (context.isSuppressExpressionExceptions())
                 log.error("Error constructing xpath", e);
             else
-            	throw new IllegalStateException (e.getMessage(), e);
+            	throw (IllegalStateException)new IllegalStateException (e.getMessage()).initCause(e);
         }
 
         return null;



Mime
View raw message