1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

RESOLVED - bug 237956: xlC parser throws an exception parsing output with word "line"

https://bugs.eclipse.org/bugs/show_bug.cgi?id=237956
This commit is contained in:
Chris Recoskie 2008-07-21 20:27:57 +00:00
parent 252e01a836
commit abeec8d288

View file

@ -110,7 +110,7 @@ public class XlcErrorParser implements IErrorParser
/* look for '.' character after the first occurance
of comma. */
tok = new StringTokenizer(secondPart,"."); //$NON-NLS-1$
if(tok.hasMoreTokens())
if(tok.countTokens()>1)
{
String token = tok.nextToken();
/* look for the string "line " before the
@ -219,7 +219,7 @@ public class XlcErrorParser implements IErrorParser
}
catch(NumberFormatException e )
{
throw e;
return false;
}
}
}