jakarta-bsf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Igor Bukanov <i...@fastmail.fm>
Subject Re: [GUMP] Build Failure - jakarta-bsf
Date Thu, 03 Jul 2003 12:57:55 GMT
>      [copy] Copying 1 file to /home/rubys/jakarta/jakarta-bsf/build/classes
>     [javac] Compiling 51 source files to /home/rubys/jakarta/jakarta-bsf/build/classes
>     [javac] /home/rubys/jakarta/jakarta-bsf/src/org/apache/bsf/engines/javascript/JavaScriptEngine.java:194:
cannot resolve symbol
>     [javac] symbol  : method unwrap ()
>     [javac] location: class org.mozilla.javascript.WrappedException
>     [javac]             t = (Throwable) ((WrappedException) t).unwrap();
>     [javac]                             ^
>     [javac] 1 error
> 
> BUILD FAILED
> /home/rubys/jakarta/jakarta-bsf/build.xml:248: Compile failed; see the compiler error
output for details.

That code should be
t = ((WrappedException) t).getWrappedException();
and not
t = (Throwable) ((WrappedException) t).unwrap();

But I will update Rhino with a deprecated version of the unwrap method 
which was removed since WrappedException does not implement the Wrapper 
interface any longer for implementation reasons.

Regards, Igor


Mime
View raw message