You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2008/08/19 15:58:20 UTC

svn commit: r687059 - /incubator/sling/trunk/scripting/jsp/src/main/java/org/apache/sling/scripting/jsp/JspScriptEngineFactory.java

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);
         }
-        
+
     }
 }