Here it is (should have done this earlier ;-)
Regards,
Rory
Carsten Ziegeler wrote:
Rory Douglas wrote:
This occurs when building with JDK 6, because the ScriptException class is
slightly different in JDK 6 vs BSF.
I edited BetterScriptException to pass the message as the super argument, and
initialize the cause exception using initCause. That then works on either JDK.
Great, can you show us a patch?
Thanks
Carsten
Index: JspScriptEngineFactory.java
===================================================================
--- JspScriptEngineFactory.java (revision 685942)
+++ JspScriptEngineFactory.java (working copy)
@@ -322,8 +322,8 @@
private static class BetterScriptException extends ScriptException {
public BetterScriptException(String message, Exception cause) {
- super(cause);
- this.message = message;
+ super(message);
+ this.initCause(cause);
}
}