Revision: 1773
http://svn.sourceforge.net/vexi/?rev=1773&view=rev
Author: mkpg2
Date: 2007-03-30 11:39:28 -0700 (Fri, 30 Mar 2007)
Log Message:
-----------
Using hash to make JSString representation unique
Modified Paths:
--------------
core/trunk/org.vexi.core/src/org/vexi/core/Blessing.java
Modified: core/trunk/org.vexi.core/src/org/vexi/core/Blessing.java
===================================================================
--- core/trunk/org.vexi.core/src/org/vexi/core/Blessing.java 2007-03-30
18:37:43 UTC (rev 1772)
+++ core/trunk/org.vexi.core/src/org/vexi/core/Blessing.java 2007-03-30
18:39:28 UTC (rev 1773)
@@ -130,11 +130,15 @@
if (t == null) throw new JSExn("No such template '" +
coerceToString()+"'");
return t;
}
-
- public String coerceToString() throws JSExn {
+
+ public String _coerceToString() throws JSExn {
if(parent == null) return "";
if(parent.parent ==null) return JSU.toString(parentkey);
- return parent.coerceToString()+"."+ JSU.toString(parentkey);
+ return parent._coerceToString()+"."+ JSU.toString(parentkey);
}
+ public String coerceToString() throws JSExn {
+ return _coerceToString()+"$"+Integer.toHexString(hashCode());
+ }
+
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Vexi-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vexi-svn