diff options
author | mark <mark@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-13 09:33:18 +0000 |
---|---|---|
committer | mark <mark@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-02-13 09:33:18 +0000 |
commit | 000dd2b864f70df5f08fdfbc867b15a5a536b133 (patch) | |
tree | 86eaca8e8916417de675a55668107cf353e515ee /libjava/gnu | |
parent | 03f6a074183e4e8fe1248f3aa0ccbfda46462017 (diff) | |
download | gcc-000dd2b864f70df5f08fdfbc867b15a5a536b133.tar.gz |
2002-02-13 Ranjit Mathew <rmathew@hotmail.com>
* gnu/gcj/runtime/NameFinder.java (createStackTraceElement): Use
lastIndexOf( ) instead of indexOf( ) to find the colon before
the line number, because Win32 file names might contain a
drive letter and a colon at the start of an absolute path.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@62834 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gnu')
-rw-r--r-- | libjava/gnu/gcj/runtime/NameFinder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/gnu/gcj/runtime/NameFinder.java b/libjava/gnu/gcj/runtime/NameFinder.java index 1d729d252ac..4089411e84b 100644 --- a/libjava/gnu/gcj/runtime/NameFinder.java +++ b/libjava/gnu/gcj/runtime/NameFinder.java @@ -371,7 +371,7 @@ public class NameFinder int line = -1; if (fileName != null) { - int colon = file.indexOf(':'); + int colon = file.lastIndexOf(':'); if (colon > 0) { fileName = file.substring(0, colon); |