Commit 4cce66c3 by Ranjit Mathew Committed by Mark Wielaard

NameFinder.java (createStackTraceElement): Use lastIndexOf( ) instead of…

NameFinder.java (createStackTraceElement): Use lastIndexOf( ) instead of indexOf( ) to find the colon before the line...

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.

From-SVN: r62834
parent 3b95ff5e
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.
2003-02-13 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/natSocketChannelImpl.cc
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment