2003/06/26 00:21:01
[org.ibex.core.git] / src / org / xwt / js / CompiledFunctionImpl.java
index 9d8a7f3..09374a3 100644 (file)
@@ -6,7 +6,7 @@ import java.io.*;
 
 // FIXME: could use some cleaning up
 /** a JavaScript function, compiled into bytecode */
-class CompiledFunctionImpl extends JS.Callable implements ByteCodes, Tokens {
+class CompiledFunctionImpl extends JSCallable implements ByteCodes, Tokens {
 
     // Fields and Accessors ///////////////////////////////////////////////
 
@@ -425,3 +425,8 @@ class CompiledFunctionImpl extends JS.Callable implements ByteCodes, Tokens {
     }
 
 }
+
+/** this class exists solely to work around a GCJ bug */
+abstract class JSCallable extends JS.Callable {
+        public abstract Object call(JS.Array args) throws JS.Exn;
+}