incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r687059 - /incubator/sling/trunk/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspScriptEngineFactory.java
Date Tue, 19 Aug 2008 13:58:20 GMT
Author: cziegeler
Date: Tue Aug 19 06:58:20 2008
New Revision: 687059

URL: http://svn.apache.org/viewvc?rev=687059&view=rev
Log:
Fix compile problems with JDK 6 - apply patch from Rory Douglas.

Modified:
    incubator/sling/trunk/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspScriptEngineFactory.java

Modified: incubator/sling/trunk/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspScriptEngineFactory.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspScriptEngineFactory.java?rev=687059&r1=687058&r2=687059&view=diff
==============================================================================
--- incubator/sling/trunk/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspScriptEngineFactory.java
(original)
+++ incubator/sling/trunk/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspScriptEngineFactory.java
Tue Aug 19 06:58:20 2008
@@ -317,14 +317,14 @@
      * a message of <code>"null"</code>, effectively supressing the detailed
      * information of the cause. This class provides a way to do that explicitly
      * with a new constructor accepting both a message and a causing exception.
-     * 
+     *
      */
     private static class BetterScriptException extends ScriptException {
-        
+
         public BetterScriptException(String message, Exception cause) {
-            super(cause);
-            this.message = message;
+            super(message);
+            this.initCause(cause);
         }
-        
+
     }
 }



Mime
View raw message