diff options
author | Chris Recoskie | 2008-07-21 20:27:57 +0000 |
---|---|---|
committer | Chris Recoskie | 2008-07-21 20:27:57 +0000 |
commit | abeec8d288ac74f3338f30ab64c7a8f517c73bfa (patch) | |
tree | 9bcce45daab400e94704e01ca359674b42502679 /xlc/org.eclipse.cdt.errorparsers.xlc/src/org | |
parent | 252e01a8368092cf26794bb5f2a68fd7e0f4d211 (diff) | |
download | org.eclipse.cdt-abeec8d288ac74f3338f30ab64c7a8f517c73bfa.tar.gz org.eclipse.cdt-abeec8d288ac74f3338f30ab64c7a8f517c73bfa.tar.xz org.eclipse.cdt-abeec8d288ac74f3338f30ab64c7a8f517c73bfa.zip |
RESOLVED - bug 237956: xlC parser throws an exception parsing output with word "line"
https://bugs.eclipse.org/bugs/show_bug.cgi?id=237956
Diffstat (limited to 'xlc/org.eclipse.cdt.errorparsers.xlc/src/org')
-rw-r--r-- | xlc/org.eclipse.cdt.errorparsers.xlc/src/org/eclipse/cdt/errorparsers/xlc/XlcErrorParser.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xlc/org.eclipse.cdt.errorparsers.xlc/src/org/eclipse/cdt/errorparsers/xlc/XlcErrorParser.java b/xlc/org.eclipse.cdt.errorparsers.xlc/src/org/eclipse/cdt/errorparsers/xlc/XlcErrorParser.java index 49eaa0f2731..9b836d89818 100644 --- a/xlc/org.eclipse.cdt.errorparsers.xlc/src/org/eclipse/cdt/errorparsers/xlc/XlcErrorParser.java +++ b/xlc/org.eclipse.cdt.errorparsers.xlc/src/org/eclipse/cdt/errorparsers/xlc/XlcErrorParser.java @@ -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; } } }
\ No newline at end of file |