X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fibex%2Fjs%2FJSReflection.java;h=d2a9d14cc54213bc66c98e9b46e2cb65940341ba;hb=ce791e4058158295bce9cf7b6698c2b565d571d7;hp=070a35bdf36b9686fb442b9c3b436b4bf0fd0a75;hpb=613e2ed0a735981d0280a4338b969b9e557e82cc;p=org.ibex.core.git diff --git a/src/org/ibex/js/JSReflection.java b/src/org/ibex/js/JSReflection.java index 070a35b..d2a9d14 100644 --- a/src/org/ibex/js/JSReflection.java +++ b/src/org/ibex/js/JSReflection.java @@ -6,10 +6,12 @@ import java.io.*; import java.util.*; import java.lang.reflect.*; +// FIXME: Update for new API /** Automatic JS-ification via Reflection (not for use in the core) */ public class JSReflection extends JS { - public static Object wrap(Object o) throws JSExn { + /*public static Object wrap(Object o) throws JSExn { + if (o == null) return null; if (o instanceof String) return o; if (o instanceof Boolean) return o; if (o instanceof Number) return o; @@ -75,5 +77,5 @@ public class JSReflection extends JS { throw new JSExn("unhandled reflected exception: " + ite.toString()); } catch (SecurityException nfe) { } throw new JSExn("called a reflection method with the wrong number of arguments"); - } + }*/ }