Nice/src/bossa/util Location.java,1.30,1.31
Artem Gr Kozarezov <[email protected]> Sun, 03 Apr 2005 03:05:16 +0000
| Newsgroups | gmane.comp.lang.nice.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/nice/Nice/src/bossa/util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6849/src/bossa/util
Modified Files:
Location.java
Log Message:
Use short source path in automatic assertion message.
Index: Location.java
===================================================================
RCS file: /cvsroot/nice/Nice/src/bossa/util/Location.java,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** Location.java 20 Feb 2005 22:09:40 -0000 1.30
--- Location.java 3 Apr 2005 03:05:13 -0000 1.31
***************
*** 88,91 ****
--- 88,96 ----
}
+ public String toShortString()
+ {
+ return toString();
+ }
+
/****************************************************************
* Setting source location in the generated bytecode.
***************
*** 133,136 ****
--- 138,146 ----
}
+ public String toShortString()
+ {
+ return (file == null) ? "" : file.getName();
+ }
+
public void write(gnu.expr.Expression exp)
{
***************
*** 194,197 ****
--- 204,212 ----
}
+ public String toShortString()
+ {
+ return super.toShortString() + ":" + startLine;
+ }
+
public String uniqueIdentifier(String root)
{
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click