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:
parent
252e01a836
commit
abeec8d288
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue