projects
/
org.ibex.core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
abffda1
)
quasi-temporary hack; reinstate coerceToString()
author
adam
<adam@megacz.com>
Sat, 3 Jul 2004 01:32:51 +0000
(
01:32
+0000)
committer
adam
<adam@megacz.com>
Sat, 3 Jul 2004 01:32:51 +0000
(
01:32
+0000)
darcs-hash:
20040703013251
-5007d-
246d3247f40e69bdf26c69cb7d398001f1725887
.gz
src/org/ibex/js/JS.java
patch
|
blob
|
history
diff --git
a/src/org/ibex/js/JS.java
b/src/org/ibex/js/JS.java
index
7a78623
..
1e38ce5
100644
(file)
--- a/
src/org/ibex/js/JS.java
+++ b/
src/org/ibex/js/JS.java
@@
-131,9
+131,14
@@
public class JS extends org.ibex.util.BalancedTree {
if((int)d == d) return Integer.toString((int)d);
return o.toString();
}
if((int)d == d) return Integer.toString((int)d);
return o.toString();
}
+ if (o instanceof JS) return ((JS)o).coerceToString(); // HACK for now, this will probably go away
throw new RuntimeException("can't coerce "+o+" [" + o.getClass().getName() + "] to type String.");
}
throw new RuntimeException("can't coerce "+o+" [" + o.getClass().getName() + "] to type String.");
}
+ public String coerceToString() {
+ throw new RuntimeException("can't coerce "+this+" [" + getClass().getName() + "] to type String.");
+ }
+
// Instance Methods ////////////////////////////////////////////////////////////////////
public static final Integer ZERO = new Integer(0);
// Instance Methods ////////////////////////////////////////////////////////////////////
public static final Integer ZERO = new Integer(0);