fix infinite loop
authorcrawshaw <crawshaw@ibex.org>
Sat, 8 Jan 2005 10:05:24 +0000 (10:05 +0000)
committercrawshaw <crawshaw@ibex.org>
Sat, 8 Jan 2005 10:05:24 +0000 (10:05 +0000)
darcs-hash:20050108100524-2eb37-98c4075c9104be4547a1972924ebe338c7665ec1.gz

src/org/ibex/core/Ibex.java

index a157239..7b27d14 100644 (file)
@@ -380,7 +380,7 @@ public final class Ibex extends JS.Obj implements JS.Cloneable {
         }
         public static Blessing getBlessing(JS js) {
             // CHECKME: is unclone() good enough or do we need getClonee() in Cloneable?
-            while (js instanceof JS.Cloneable && !(js instanceof Blessing)) js = js.unclone();
+            while (js instanceof JS.Clone && !(js instanceof Blessing)) js = js.unclone();
             if (!(js instanceof Blessing)) return null;
             return (Blessing)js;
         }